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
PinnedFieldsOf<__Valve<'pin>>: Unpin,
Auto Trait Implementations§
impl Freeze for Valve
impl !RefUnwindSafe for Valve
impl Send for Valve
impl Sync for Valve
impl !UnwindSafe for Valve
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