pub struct ActionHandlerRegistration { /* private fields */ }Expand description
RAII registration token. Dropping it unregisters the
handler. Modes typically aggregate these into their
Mode::Guard; when the Guard drops on deactivation, every
token drops, every handler unregisters.
Send + 'static so it fits the Mode::Guard: Send + 'static bound.
Trait Implementations§
Source§impl Debug for ActionHandlerRegistration
impl Debug for ActionHandlerRegistration
Source§impl Drop for ActionHandlerRegistration
impl Drop for ActionHandlerRegistration
Auto Trait Implementations§
impl !RefUnwindSafe for ActionHandlerRegistration
impl !UnwindSafe for ActionHandlerRegistration
impl Freeze for ActionHandlerRegistration
impl Send for ActionHandlerRegistration
impl Sync for ActionHandlerRegistration
impl Unpin for ActionHandlerRegistration
impl UnsafeUnpin for ActionHandlerRegistration
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