Skip to main content

Module hooks

Module hooks 

Source
Expand description

HookBus — the central dispatcher for extension hooks.

The HookBus holds registered handlers and dispatches typed events to them. Without any handlers, emit() is a no-op fast path (<1µs).

Tool-specific hooks filter by tool name before dispatching.

Modules§

events
Hook events — typed payloads for each extension point.

Structs§

HandlerRegistration
A registered hook handler with its metadata.
HookBus
The central hook dispatcher.