pub struct TickCallbackRegistration { /* private fields */ }Expand description
RAII registration token. Dropping it removes the callback. Modes
aggregate the token into their Mode::Guard; when the Guard drops on
deactivation, the callback is removed and the mode contributes no
further per-tick work.
Send + 'static so it fits the Mode::Guard: Send + 'static bound.
Trait Implementations§
Source§impl Debug for TickCallbackRegistration
impl Debug for TickCallbackRegistration
Source§impl Drop for TickCallbackRegistration
impl Drop for TickCallbackRegistration
Auto Trait Implementations§
impl Freeze for TickCallbackRegistration
impl RefUnwindSafe for TickCallbackRegistration
impl Send for TickCallbackRegistration
impl Sync for TickCallbackRegistration
impl Unpin for TickCallbackRegistration
impl UnsafeUnpin for TickCallbackRegistration
impl UnwindSafe for TickCallbackRegistration
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