pub struct HookManager { /* private fields */ }Implementations§
Source§impl HookManager
impl HookManager
pub fn new(config: HookConfig) -> Self
pub fn read_only() -> Self
pub fn register(&mut self, handler: Box<dyn HookHandler>)
pub fn set_use_defaults(&mut self, use_defaults: bool)
pub fn config(&self) -> &HookConfig
pub fn set_config(&mut self, config: HookConfig)
pub fn execute(&self, event: HookEvent, ctx: HookContext) -> HookContext
pub fn execute_chain( &self, events: &[HookEvent], initial_ctx: HookContext, ) -> HookContext
pub fn extract_candidates(&self, ctx: &HookContext) -> Vec<MemoryCandidate>
pub fn is_enabled(&self, event: &HookEvent) -> bool
pub fn can_write(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HookManager
impl !UnwindSafe for HookManager
impl Freeze for HookManager
impl Send for HookManager
impl Sync for HookManager
impl Unpin for HookManager
impl UnsafeUnpin for HookManager
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