pub struct HookManager { /* private fields */ }Implementations§
Source§impl HookManager
impl HookManager
pub fn new() -> Self
pub fn register_handler(&mut self, handler: Box<dyn HookHandler>)
pub async fn execute_hook( &self, hook: PluginHook, context: &mut HookContext, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for HookManager
impl !RefUnwindSafe for HookManager
impl Send for HookManager
impl Sync for HookManager
impl Unpin for HookManager
impl !UnwindSafe 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