karyon_p2p::monitor

Trait ToEventStruct

Source
pub(crate) trait ToEventStruct: Sized {
    type EventStruct: From<Self> + Clone + EventValueTopic<Topic = MonitorTopic> + EventValue;

    // Provided method
    fn to_struct(self) -> Self::EventStruct { ... }
}

Required Associated Types§

Provided Methods§

Source

fn to_struct(self) -> Self::EventStruct

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§