fuchsia_wayland_core

Trait IntoMessage

Source
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§

Source

fn into_message(self, id: u32) -> Result<Message, Self::Error>

Consumes |self| and serializes into a |Message|.

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.

Implementors§