pub struct Choose<A: Session, B: Session> { /* private fields */ }Expand description
A protocol step where this endpoint chooses between two continuations.
The peer must offer both branches (see Offer).
Trait Implementations§
Auto Trait Implementations§
impl<A, B> Freeze for Choose<A, B>
impl<A, B> RefUnwindSafe for Choose<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Choose<A, B>
impl<A, B> Sync for Choose<A, B>
impl<A, B> Unpin for Choose<A, B>
impl<A, B> UnsafeUnpin for Choose<A, B>
impl<A, B> UnwindSafe for Choose<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).