pub struct DefaultHookExecutor;Expand description
Default implementation of HookExecutor
Executes hooks with proper error handling, timeout support, and logging. Implements hook isolation: failures in one hook don’t affect others.
Implementations§
Trait Implementations§
Source§impl Clone for DefaultHookExecutor
impl Clone for DefaultHookExecutor
Source§fn clone(&self) -> DefaultHookExecutor
fn clone(&self) -> DefaultHookExecutor
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 DefaultHookExecutor
impl Debug for DefaultHookExecutor
Source§impl Default for DefaultHookExecutor
impl Default for DefaultHookExecutor
Source§impl HookExecutor for DefaultHookExecutor
impl HookExecutor for DefaultHookExecutor
Source§fn execute_hook(
&self,
hook: &Hook,
context: &EventContext,
) -> Result<HookResult>
fn execute_hook( &self, hook: &Hook, context: &EventContext, ) -> Result<HookResult>
Execute a hook with the given context Read more
Source§fn execute_action(&self, hook: &Hook, context: &EventContext) -> Result<String>
fn execute_action(&self, hook: &Hook, context: &EventContext) -> Result<String>
Execute a hook action Read more
Auto Trait Implementations§
impl Freeze for DefaultHookExecutor
impl RefUnwindSafe for DefaultHookExecutor
impl Send for DefaultHookExecutor
impl Sync for DefaultHookExecutor
impl Unpin for DefaultHookExecutor
impl UnwindSafe for DefaultHookExecutor
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