pub trait Event:
Clone
+ Send
+ Sync
+ 'static {
const NAME: &'static str;
}Expand description
A typed, Application-scoped event.
This compatibility contract routes through EventKey::new(NAME). New code
should declare an EventKey<T> directly.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".