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) -> BootInstant;
fn is_ok(&self) -> bool;
fn is_err(&self) -> bool;
}
Expand description
Common features of any event - event type, target moniker, conversion function
Required Associated Constants§
Required Methods§
fn target_moniker(&self) -> &str
fn component_url(&self) -> &str
fn timestamp(&self) -> BootInstant
fn is_ok(&self) -> bool
fn is_err(&self) -> bool
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.