Trait component_events::events::Event
source · pub trait Event: TryFrom<Event, Error = Error> {
const TYPE: EventType;
const NAME: &'static str;
// Required methods
fn target_moniker(&self) -> &str;
fn component_url(&self) -> &str;
fn timestamp(&self) -> Time;
fn is_ok(&self) -> bool;
fn is_err(&self) -> bool;
}
Expand description
Common features of any event - event type, target moniker, conversion function