pub struct KillTrig(/* private fields */);Expand description
The kill trigger is used to signal that tasks should self-terminate.
It’s possible to .await KillTrig objects to wait for all associated
KillWait objects have been dropped. It is important
that the task calling awaiting the KillTrig does not own an associated
KillWait since this would cause a deadlock.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KillTrig
impl !RefUnwindSafe for KillTrig
impl Send for KillTrig
impl Sync for KillTrig
impl Unpin for KillTrig
impl !UnwindSafe for KillTrig
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more