pub trait ProtoEvent:
Message
+ Name
+ Serialize
+ DeserializeOwned
+ Sized {
// Provided methods
fn into_event(&self) -> Event { ... }
fn from_event(event: &Event) -> Result<Self> { ... }
}
Provided Methods§
fn into_event(&self) -> Event
fn from_event(event: &Event) -> Result<Self>
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.