Crate wayland_commons[][src]

Common definitions for wayland

This crate hosts common type and traits used to represent wayland messages and routines in the wayland-client and wayland-server crates.

This notably includes the Interface trait, which can exhaustively describe any wayland interface. Its implementations are intended to be generated by the wayland-scanner crate.

The principal user-facing definition provided by this crate is the Implementation trait, which as a user of wayland-client or wayland-server you will be using to define objects able to handle the messages your program receives. Note that this trait is auto-implemented for closures with appropriate signature, for convenience.

Modules

debug

Debugging helpers to handle WAYLAND_DEBUG env variable.

filter

Filter

map

Wayland objects map

socket

Wayland socket manipulation

user_data

Various utilities used for other implementations

wire

Types and routines used to manipulate arguments from the wire format

Macros

smallvec

Creates a SmallVec containing the arguments.

Structs

ThreadGuard

Stores a value in a threadafe container that only lets you access it from its owning thread

Enums

NoMessage

An empty enum representing a MessageGroup with no messages

Traits

Interface

The description of a wayland interface

MessageGroup

A group of messages