pub struct Demand<S, G = AlwaysArmed> { /* private fields */ }Expand description
A SendPipe gated by downstream DemandGate: dormant (no-op Ok) when
the gate is closed, the inner pipe when open.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S, G> Freeze for Demand<S, G>
impl<S, G> RefUnwindSafe for Demand<S, G>where
S: RefUnwindSafe,
G: RefUnwindSafe,
impl<S, G> Send for Demand<S, G>
impl<S, G> Sync for Demand<S, G>
impl<S, G> Unpin for Demand<S, G>
impl<S, G> UnsafeUnpin for Demand<S, G>where
S: UnsafeUnpin,
G: UnsafeUnpin,
impl<S, G> UnwindSafe for Demand<S, G>where
S: UnwindSafe,
G: 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