pub struct CallbackDisposal<F: FnOnce()>(/* private fields */);Expand description
A disposal that calls a callback when disposed.
Implementations§
Trait Implementations§
Source§impl<F: FnOnce()> Disposable for CallbackDisposal<F>
impl<F: FnOnce()> Disposable for CallbackDisposal<F>
Auto Trait Implementations§
impl<F> Freeze for CallbackDisposal<F>where
F: Freeze,
impl<F> RefUnwindSafe for CallbackDisposal<F>where
F: RefUnwindSafe,
impl<F> Send for CallbackDisposal<F>where
F: Send,
impl<F> Sync for CallbackDisposal<F>where
F: Sync,
impl<F> Unpin for CallbackDisposal<F>where
F: Unpin,
impl<F> UnwindSafe for CallbackDisposal<F>where
F: UnwindSafe,
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