Trait event::generic_event::GenericEvent
[−]
[src]
pub trait GenericEvent {
fn event_id(&self) -> EventId;
fn with_args<'a, F, U>(&'a self, f: F) -> U where F: FnMut(&Any) -> U;
fn from_args(event_id: EventId, any: &Any, old_event: &Self) -> Option<Self>;
}
Implemented by all events
Required Methods
fn event_id(&self) -> EventId
The id of this event.
fn with_args<'a, F, U>(&'a self, f: F) -> U where F: FnMut(&Any) -> U
Calls closure with table
fn from_args(event_id: EventId, any: &Any, old_event: &Self) -> Option<Self>
Converts from table to Self
Implementors
impl GenericEvent for Input
impl<I: GenericEvent> GenericEvent for Event<I>