fuchsia_wayland_core

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

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.

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§