pub trait Event:
Any
+ Send
+ Sync
+ 'static {
// Required method
fn event_type(&self) -> EventType;
}Expand description
Trait that all hook and in-process bus events must implement.
The public hook API dispatches on the concrete Rust event type. The
EventType remains available as stable human-readable metadata for logs,
metrics, and diagnostics.
Required Methods§
Sourcefn event_type(&self) -> EventType
fn event_type(&self) -> EventType
Return the event type discriminator for this event.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".