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

Required Associated Constants§

source

const TYPE: EventType

source

const NAME: &'static str

Required Methods§

source

fn target_moniker(&self) -> &str

source

fn component_url(&self) -> &str

source

fn timestamp(&self) -> Time

source

fn is_ok(&self) -> bool

source

fn is_err(&self) -> bool

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Event for CapabilityRequested

source§

const TYPE: EventType = fcomponent::EventType::CapabilityRequested

source§

const NAME: &'static str = "capability_requested"

source§

impl Event for DebugStarted

source§

const TYPE: EventType = fcomponent::EventType::DebugStarted

source§

const NAME: &'static str = "debug_started"

source§

impl Event for Destroyed

source§

const TYPE: EventType = fcomponent::EventType::Destroyed

source§

const NAME: &'static str = "destroyed"

source§

impl Event for Discovered

source§

const TYPE: EventType = fcomponent::EventType::Discovered

source§

const NAME: &'static str = "discovered"

source§

impl Event for Resolved

source§

const TYPE: EventType = fcomponent::EventType::Resolved

source§

const NAME: &'static str = "resolved"

source§

impl Event for Started

source§

const TYPE: EventType = fcomponent::EventType::Started

source§

const NAME: &'static str = "started"

source§

impl Event for Stopped

source§

const TYPE: EventType = fcomponent::EventType::Stopped

source§

const NAME: &'static str = "stopped"

source§

impl Event for Unresolved

source§

const TYPE: EventType = fcomponent::EventType::Unresolved

source§

const NAME: &'static str = "unresolved"