pub struct HookManager { /* private fields */ }Expand description
Hook manager for interaction sessions.
Implementations§
Source§impl HookManager
impl HookManager
Sourcepub fn add_input_hook<F>(&mut self, hook: F)
pub fn add_input_hook<F>(&mut self, hook: F)
Add an input processing hook.
Sourcepub fn add_output_hook<F>(&mut self, hook: F)
pub fn add_output_hook<F>(&mut self, hook: F)
Add an output processing hook.
Sourcepub fn add_event_hook<F>(&mut self, hook: F)
pub fn add_event_hook<F>(&mut self, hook: F)
Add an event notification hook.
Sourcepub fn notify(&self, event: &InteractionEvent)
pub fn notify(&self, event: &InteractionEvent)
Notify all event hooks.
Trait Implementations§
Source§impl Debug for HookManager
impl Debug for HookManager
Source§impl Default for HookManager
impl Default for HookManager
Source§fn default() -> HookManager
fn default() -> HookManager
Returns the “default value” for a type. Read more
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