pub trait Eventable: Send + Sync + Debug { // Provided method fn to_event(&self) -> Option<Box<dyn Event>> { ... } }
Eventable trait defines the interface for objects that can be converted to Event.
Converts the object to an Event.