pub struct CancelFn(/* private fields */);Expand description
Cancels the associated Context when called.
Cloneable; multiple holders can all call cancel() — only the first call
takes effect.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CancelFn
impl !RefUnwindSafe for CancelFn
impl Send for CancelFn
impl Sync for CancelFn
impl Unpin for CancelFn
impl UnsafeUnpin for CancelFn
impl !UnwindSafe for CancelFn
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