pub(crate) trait ToEventStruct: Sized {
type EventStruct: From<Self> + Clone + EventTopic<Topic = MonitorTopic> + AsEventValue + Debug;
// Provided method
fn to_struct(self) -> Self::EventStruct { ... }
}
Required Associated Types§
type EventStruct: From<Self> + Clone + EventTopic<Topic = MonitorTopic> + AsEventValue + Debug
Provided Methods§
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.