Crate waybackend

Crate waybackend 

Source
Expand description

§Waybackend

Welcome. Waybackend is a low-level wayland backend that allows you to do wayland stuff without wrapping everything in Arcs.

Start by calling waybackend::connect.

Re-exports§

pub use wire::Error;
pub use bitflags;
pub use rustix;

Modules§

objman
shm
Utilities to use shared memory with memory mapping.
types
This module contains the definitions of all wayland types that can go through the wire.
wire
This module contains structs for communicating through the wayland file descriptor

Macros§

bind_globals
This macro can help you bind all the globals you want to their equivalent enum.
match_enum_with_interface
This macro can help you dispatch all the received wayland matches through the appropriate protocol event handler.

Structs§

Global
A wayland global. Use this to bind the interfaces you want
Waybackend
This struct holds the message builder and the wayland file descriptor

Enums§

ConnectionError
RoundtripError

Constants§

WL_DISPLAY
The wayland display global object always has the same id: 1

Functions§

connect
Mostly copy-pasted from wayland-client.rs
connect_to
This behave the same as the connect function, but you must provide the wayland socket file descriptor and socket address yourself manually.
roundtrip
Does a roundtrip to gather all the globals during program initialization