pub struct CancellationFunc<'a> { /* private fields */ }Expand description
A function that will be executed on cancellation
This is a tiny wrapper around a FnMut closure which allows to intrusively
link multiple closures.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CancellationFunc<'a>
impl<'a> !RefUnwindSafe for CancellationFunc<'a>
impl<'a> !Send for CancellationFunc<'a>
impl<'a> !Sync for CancellationFunc<'a>
impl<'a> Unpin for CancellationFunc<'a>
impl<'a> !UnwindSafe for CancellationFunc<'a>
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