fuchsia_wayland_core

Trait MessageType

Source
pub trait MessageType {
    // Required methods
    fn log(&self, this: ObjectId) -> String;
    fn message_name(&self) -> &'static CStr;
}
Expand description

Common base trait for all rust types that model wayland Requests or Events.

Required Methods§

Source

fn log(&self, this: ObjectId) -> String

Generates a string suitable for protocol logging this message.

Source

fn message_name(&self) -> &'static CStr

Returns a static CStr reference that describes the interface/method of this message.

Ex: ‘wl_interface::method_name’

Implementors§