pub trait IntoSyncHook<K: HookEvent> { }Expand description
A plain closure usable as a hook for the event K (HookCallback), sealed.
Implemented for every Fn(&mut Event) -> R + Send + Sync + 'static where R is a
HookOutput. Annotate the closure argument (|event: &mut BeforeToolCallEvent| ..) so the
event type can be inferred.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".