pub trait TypedEvent {
type Payload: Serialize + DeserializeOwned + Clone + Send + Sync + 'static;
const NAME: &'static str;
const MODE: Dispatch;
const AROUND: bool;
}Expand description
Compile-time binding between a catalog event and its payload type.
NAME/MODE/AROUND must mirror the event’s
crate::events_catalog::EventContract; the
typed_events_match_catalog_contracts test fails on drift.
Required Associated Constants§
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".