pub trait EventSource {
const SOURCE: Option<&'static str>;
}
Expand description
Provide an event source name for an event type
This is required to use that type as an event payload
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.