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§
type EventStruct: From<Self> + Clone + EventValueTopic<Topic = MonitorTopic> + EventValue
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.