pub struct Offer<A: Session, B: Session> { /* private fields */ }Expand description
A protocol step where this endpoint offers two continuations for the peer to choose.
The peer selects a branch (see Choose).
Trait Implementations§
Auto Trait Implementations§
impl<A, B> Freeze for Offer<A, B>
impl<A, B> RefUnwindSafe for Offer<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Offer<A, B>
impl<A, B> Sync for Offer<A, B>
impl<A, B> Unpin for Offer<A, B>
impl<A, B> UnsafeUnpin for Offer<A, B>
impl<A, B> UnwindSafe for Offer<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).