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