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§
Auto Trait Implementations§
impl Freeze for Valve
impl !RefUnwindSafe for Valve
impl Send for Valve
impl Sync for Valve
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)