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