pub trait EventDescriptor {
type Event: Serialize + DeserializeOwned;
const KEY: &'static str;
const SUBJECT: &'static str;
}Expand description
Metadata required to publish one typed Trellis event.
Required Associated Constants§
Required Associated Types§
Sourcetype Event: Serialize + DeserializeOwned
type Event: Serialize + DeserializeOwned
Event payload type.
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.