Trait Eventable

Source
pub trait Eventable:
    Send
    + Sync
    + Debug {
    // Provided method
    fn to_event(&self) -> Option<Box<dyn Event>> { ... }
}
Expand description

Eventable trait defines the interface for objects that can be converted to Event.

Provided Methods§

Source

fn to_event(&self) -> Option<Box<dyn Event>>

Converts the object to an Event.

Implementors§