pub struct HookRegistry { /* private fields */ }Expand description
Hook registry for managing and executing hooks.
Implementations§
Source§impl HookRegistry
impl HookRegistry
Sourcepub fn register_from_config(&mut self, config: HookConfig)
pub fn register_from_config(&mut self, config: HookConfig)
Register hooks from legacy configuration.
Sourcepub fn register_from_matcher_config(&mut self, config: HookMatcherConfig)
pub fn register_from_matcher_config(&mut self, config: HookMatcherConfig)
Register typed hooks from matcher configuration.
Sourcepub fn register(&mut self, event: &str, definition: HookDefinition)
pub fn register(&mut self, event: &str, definition: HookDefinition)
Register a single legacy hook.
Sourcepub fn register_matcher(&mut self, event: &str, matcher: HookMatcher)
pub fn register_matcher(&mut self, event: &str, matcher: HookMatcher)
Register a typed hook matcher.
Trait Implementations§
Source§impl Clone for HookRegistry
impl Clone for HookRegistry
Source§fn clone(&self) -> HookRegistry
fn clone(&self) -> HookRegistry
Returns a duplicate 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 moreSource§impl Debug for HookRegistry
impl Debug for HookRegistry
Source§impl Default for HookRegistry
impl Default for HookRegistry
Source§fn default() -> HookRegistry
fn default() -> HookRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HookRegistry
impl RefUnwindSafe for HookRegistry
impl Send for HookRegistry
impl Sync for HookRegistry
impl Unpin for HookRegistry
impl UnsafeUnpin for HookRegistry
impl UnwindSafe for HookRegistry
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