pub trait EventData {
const KIND: EventKind;
// Required methods
fn from_event(event: Event) -> Result<Arc<Self>, Event>;
fn into_event(self: Arc<Self>) -> Event;
}Expand description
Generalization of event data
Required Associated Constants§
Required Methods§
fn from_event(event: Event) -> Result<Arc<Self>, Event>
fn into_event(self: Arc<Self>) -> Event
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.