Skip to main content

IntoHookImpl

Trait IntoHookImpl 

Source
pub trait IntoHookImpl<K: HookEvent> { }
Expand description

A Hook implementation usable for the event K, sealed.

Implemented for every H: Hook<Event>. When a type implements Hook for several events, name the event: add_hook_impl::<BeforeToolCallEvent>(hook).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<H> IntoHookImpl<AfterInvocationEvent<'static>> for H
where H: for<'a> Hook<AfterInvocationEvent<'a>>,

Source§

impl<H> IntoHookImpl<AfterModelCallEvent<'static>> for H
where H: for<'a> Hook<AfterModelCallEvent<'a>>,

Source§

impl<H> IntoHookImpl<AfterToolCallEvent> for H

Source§

impl<H> IntoHookImpl<AfterToolsEvent<'static>> for H
where H: for<'a> Hook<AfterToolsEvent<'a>>,

Source§

impl<H> IntoHookImpl<AgentResultEvent<'static>> for H
where H: for<'a> Hook<AgentResultEvent<'a>>,

Source§

impl<H> IntoHookImpl<BeforeInvocationEvent<'static>> for H
where H: for<'a> Hook<BeforeInvocationEvent<'a>>,

Source§

impl<H> IntoHookImpl<BeforeModelCallEvent<'static>> for H
where H: for<'a> Hook<BeforeModelCallEvent<'a>>,

Source§

impl<H> IntoHookImpl<BeforeToolCallEvent> for H

Source§

impl<H> IntoHookImpl<BeforeToolsEvent<'static>> for H
where H: for<'a> Hook<BeforeToolsEvent<'a>>,

Source§

impl<H> IntoHookImpl<ContentBlockEvent<'static>> for H
where H: for<'a> Hook<ContentBlockEvent<'a>>,

Source§

impl<H> IntoHookImpl<InitializedEvent<'static>> for H
where H: for<'a> Hook<InitializedEvent<'a>>,

Source§

impl<H> IntoHookImpl<InterruptEvent<'static>> for H
where H: for<'a> Hook<InterruptEvent<'a>>,

Source§

impl<H> IntoHookImpl<MessageAddedEvent<'static>> for H
where H: for<'a> Hook<MessageAddedEvent<'a>>,

Source§

impl<H> IntoHookImpl<ModelMessageEvent<'static>> for H
where H: for<'a> Hook<ModelMessageEvent<'a>>,

Source§

impl<H> IntoHookImpl<ModelStreamUpdateEvent<'static>> for H
where H: for<'a> Hook<ModelStreamUpdateEvent<'a>>,

Source§

impl<H> IntoHookImpl<ToolResultEvent> for H

Source§

impl<H> IntoHookImpl<ToolStreamUpdateEvent> for H