Trait fuchsia_wayland_core::Interface

source ·
pub trait Interface {
    type Incoming: FromArgs;
    type Outgoing: IntoMessage;

    const NAME: &'static str;
    const VERSION: u32;
    const REQUESTS: MessageGroupSpec;
    const EVENTS: MessageGroupSpec;
}

Required Associated Types§

source

type Incoming: FromArgs

The rust type that can hold the decoded incoming messages.

source

type Outgoing: IntoMessage

The rust type that can be decoded into outgoing messages.

Required Associated Constants§

source

const NAME: &'static str

The name of this interface. This will correspond to the ‘name’ attribute on the ‘interface’ element in the wayland protocol XML.

source

const VERSION: u32

The version of this interface. This will correspond to the ‘version’ attribute on the ‘interface’ element in the wayland protocol XML.

source

const REQUESTS: MessageGroupSpec

A description of the structure of request messages.

source

const EVENTS: MessageGroupSpec

A description of the structure of event messages.

Object Safety§

This trait is not object safe.

Implementors§