enum NegotiationSlot {
Idle,
WaitingForAnswer(PendingNegotiation),
}Variants§
Idle
WaitingForAnswer(PendingNegotiation)
Implementations§
Source§impl NegotiationSlot
impl NegotiationSlot
fn accept( &mut self, request_id: &RequestId, kind: NegotiationKind, ) -> Result<(), NegotiationRejection>
fn resolve(&mut self, request_id: &RequestId, kind: NegotiationKind) -> bool
Trait Implementations§
Source§impl Clone for NegotiationSlot
impl Clone for NegotiationSlot
Source§fn clone(&self) -> NegotiationSlot
fn clone(&self) -> NegotiationSlot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NegotiationSlot
impl Debug for NegotiationSlot
Source§impl PartialEq for NegotiationSlot
impl PartialEq for NegotiationSlot
impl Eq for NegotiationSlot
impl StructuralPartialEq for NegotiationSlot
Auto Trait Implementations§
impl Freeze for NegotiationSlot
impl RefUnwindSafe for NegotiationSlot
impl Send for NegotiationSlot
impl Sync for NegotiationSlot
impl Unpin for NegotiationSlot
impl UnsafeUnpin for NegotiationSlot
impl UnwindSafe for NegotiationSlot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more