Skip to main content

ToEvent

Trait ToEvent 

Source
pub(crate) trait ToEvent: Sized {
    type Event: From<Self> + Clone + EventTopic<Topic = MonitorTopic> + AsEventValue + Debug;

    // Provided method
    fn to_event(self) -> Self::Event { ... }
}

Required Associated Types§

Provided Methods§

Source

fn to_event(self) -> Self::Event

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.

Implementors§