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§
type Event: From<Self> + Clone + EventTopic<Topic = MonitorTopic> + AsEventValue + Debug
Provided Methods§
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.