Struct stream_cancel::Trigger
source · pub struct Trigger(/* private fields */);
Expand description
A handle to a set of cancellable streams.
If the Trigger
is dropped, any streams associated with it are interrupted (this is equivalent
to calling Trigger::cancel
. To override this behavior, call Trigger::disable
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl !UnwindSafe for Trigger
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