Skip to main content

EventTypeExt

Trait EventTypeExt 

Source
pub trait EventTypeExt {
    // Required methods
    fn from_engine_message(msg: &EngineMessage) -> EventType;
    fn topic(&self) -> &'static str;
}

Required Methods§

Source

fn from_engine_message(msg: &EngineMessage) -> EventType

Derive from an EngineMessage variant.

Source

fn topic(&self) -> &'static str

Derive the event topic string for this event type.

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.

Implementations on Foreign Types§

Source§

impl EventTypeExt for EventType

Implementors§