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§

impl Interface for TestInterface

impl Interface for WlBuffer

impl Interface for WlCallback

impl Interface for WlCompositor

impl Interface for WlDataDevice

impl Interface for WlDataDeviceManager

impl Interface for WlDataOffer

impl Interface for WlDataSource

impl Interface for WlDisplay

impl Interface for WlKeyboard

impl Interface for WlOutput

impl Interface for WlPointer

impl Interface for WlRegion

impl Interface for WlRegistry

impl Interface for WlSeat

impl Interface for WlShell

impl Interface for WlShellSurface

impl Interface for WlShm

impl Interface for WlShmPool

impl Interface for WlSubcompositor

impl Interface for WlSubsurface

impl Interface for WlSurface

impl Interface for WlTouch

impl Interface for WlBuffer

impl Interface for WlCallback

impl Interface for WlCompositor

impl Interface for WlDataDevice

impl Interface for WlDataDeviceManager

impl Interface for WlDataOffer

impl Interface for WlDataSource

impl Interface for WlDisplay

impl Interface for WlKeyboard

impl Interface for WlOutput

impl Interface for WlPointer

impl Interface for WlRegion

impl Interface for WlRegistry

impl Interface for WlSeat

impl Interface for WlShell

impl Interface for WlShellSurface

impl Interface for WlShm

impl Interface for WlShmPool

impl Interface for WlSubcompositor

impl Interface for WlSubsurface

impl Interface for WlSurface

impl Interface for WlTouch

impl Interface for WpViewport

impl Interface for WpViewporter

impl Interface for WpViewport

impl Interface for WpViewporter

impl Interface for XdgPopup

impl Interface for XdgPositioner

impl Interface for XdgSurface

impl Interface for XdgToplevel

impl Interface for XdgWmBase

impl Interface for XdgPopup

impl Interface for XdgPositioner

impl Interface for XdgSurface

impl Interface for XdgToplevel

impl Interface for XdgWmBase

impl Interface for ZauraOutput

impl Interface for ZauraShell

impl Interface for ZauraSurface

impl Interface for ZauraOutput

impl Interface for ZauraShell

impl Interface for ZauraSurface

impl Interface for ZcrAlphaCompositingV1

impl Interface for ZcrBlendingV1

impl Interface for ZcrAlphaCompositingV1

impl Interface for ZcrBlendingV1

impl Interface for ZcrSecureOutputV1

impl Interface for ZcrSecurityV1

impl Interface for ZcrSecureOutputV1

impl Interface for ZcrSecurityV1

impl Interface for ZwpLinuxBufferParamsV1

impl Interface for ZwpLinuxDmabufV1

impl Interface for ZwpLinuxBufferParamsV1

impl Interface for ZwpLinuxDmabufV1

impl Interface for ZwpConfinedPointerV1

impl Interface for ZwpLockedPointerV1

impl Interface for ZwpPointerConstraintsV1

impl Interface for ZwpConfinedPointerV1

impl Interface for ZwpLockedPointerV1

impl Interface for ZwpPointerConstraintsV1

impl Interface for ZwpRelativePointerManagerV1

impl Interface for ZwpRelativePointerV1

impl Interface for ZwpRelativePointerManagerV1

impl Interface for ZwpRelativePointerV1