pub struct HookRegistry { /* private fields */ }Expand description
Hook registry for managing multiple hooks
Implementations§
Source§impl HookRegistry
impl HookRegistry
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create registry with default hooks
Sourcepub async fn pre_execute(
&self,
tool_name: &str,
params: &Value,
) -> Result<HookResult>
pub async fn pre_execute( &self, tool_name: &str, params: &Value, ) -> Result<HookResult>
Run pre-execute hooks for a tool Returns first Block result, or Continue/Modify from last hook
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HookRegistry
impl !UnwindSafe for HookRegistry
impl Freeze for HookRegistry
impl Send for HookRegistry
impl Sync for HookRegistry
impl Unpin for HookRegistry
impl UnsafeUnpin 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