pub struct HookEntry {
pub plugin_ref: Arc<PluginRef>,
pub handler: Arc<dyn AnyHookHandler>,
}Expand description
A registered hook handler paired with its PluginRef.
The executor uses plugin_ref for scheduling decisions (mode,
priority, capabilities) and handler for actual dispatch.
plugin_ref is Arc<PluginRef> so cloning a HookEntry is two
reference-count bumps rather than a deep clone of the embedded
PluginConfig. group_by_mode (called once per invoke) clones N
entries — keeping that cheap matters at high request rates.
Fields§
§plugin_ref: Arc<PluginRef>The plugin wrapper with authoritative config.
handler: Arc<dyn AnyHookHandler>The type-erased handler for this specific hook.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HookEntry
impl !UnwindSafe for HookEntry
impl Freeze for HookEntry
impl Send for HookEntry
impl Sync for HookEntry
impl Unpin for HookEntry
impl UnsafeUnpin for HookEntry
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