pub trait EventPayload:
Serialize
+ DeserializeOwned
+ Send
+ Sync
+ 'static {
const KIND: EventKind;
}Expand description
Trait for typed event payloads that correspond to specific EventKind variants.
Implementors declare which EventKind they represent via const KIND.
Used with Event::decode::<P>() for type-safe payload extraction.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.