pub struct Cancel(/* private fields */);
Expand description
A cancel notifier.
The associated CancelContext
will be cancelled when this object is
dropped or Cancel::cancel()
is called.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cancel
impl !RefUnwindSafe for Cancel
impl Send for Cancel
impl Sync for Cancel
impl Unpin for Cancel
impl !UnwindSafe for Cancel
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