pub trait EventPayload {
const ID: EventType;
const LARGE: bool;
const NAME: &'static str;
// Provided method
fn direction() -> EventDirection { ... }
}
Required Associated Constants§
Provided Methods§
fn direction() -> EventDirection
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.