Trait fuchsia_wayland_core::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|.

Object Safety§

This trait is not object safe.

Implementors§