Expand description
Typed in-process hooks and event bus primitives.
Domain-specific event payloads implement Event and are registered with
HookRegistry::on using the concrete event type. This keeps hook payloads
typed at the public API boundary while allowing a single injected registry
to coordinate multiple event types.
Re-exports§
pub use bus::EventBus;pub use bus::EventBusConfig;pub use bus::EventRegistry;pub use bus::Subscriber;pub use registry::HookRegistry as Registry;pub use registry::HookRegistry;pub use registry::LifecycleHookRegistry;pub use types::Event;pub use types::EventType;pub use types::HookError;pub use types::HookResult;
Modules§
- bus
- Bounded typed in-process event bus. Bounded typed in-process event bus.
- registry
- Typed hook registry.
- types
- Event and hook result types. Generic observe-only hook event types.
Structs§
- Cancellation
Token - A token which can be used to signal a cancellation request to one or more tasks.