Struct stream_cancel::Valve
source · pub struct Valve(/* private fields */);
Expand description
A Valve
is associated with a Trigger
, and can be used to wrap one or more
asynchronous streams. All streams wrapped by a given Valve
(or its clones) will be
interrupted when [Trigger::close
] is called on the valve’s associated handle.
Implementations§
Trait Implementations§
impl<'pin> Unpin for Valvewhere
__Valve<'pin>: Unpin,
Auto Trait Implementations§
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