Struct hooks::HooksRegistration
source · pub struct HooksRegistration { /* private fields */ }
Expand description
An object registers a hook into a component manager event via a HooksRegistration
object.
A single object may register for multiple events through a vector of EventType
. Hooks
does not retain the callback. The hook is lazily removed when the callback object loses
strong references.
Implementations§
Trait Implementations§
source§impl Clone for HooksRegistration
impl Clone for HooksRegistration
source§fn clone(&self) -> HooksRegistration
fn clone(&self) -> HooksRegistration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for HooksRegistration
impl !RefUnwindSafe for HooksRegistration
impl Send for HooksRegistration
impl Sync for HooksRegistration
impl Unpin for HooksRegistration
impl !UnwindSafe for HooksRegistration
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)