pub struct CancelOnDrop(/* private fields */);Expand description
An object for which a cancellation notification is sent when dropped.
Returned by CancellationTokenSource::cancel_defer().
Implementations§
Source§impl CancelOnDrop
impl CancelOnDrop
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CancelOnDrop
impl RefUnwindSafe for CancelOnDrop
impl Send for CancelOnDrop
impl Sync for CancelOnDrop
impl Unpin for CancelOnDrop
impl UnwindSafe for CancelOnDrop
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