pub trait IntoMessage: Sized + MessageType {
type Error: Error + Sync;
// Required method
fn into_message(self, id: u32) -> Result<Message, Self::Error>;
}
Expand description
Trait to be implemented by any type used as an interface ‘event’.
Required Associated Types§
Required 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.