Module xcb_ffi

Source
Expand description

A FFI-based connection to an X11 server, using libxcb.

This module is only available when the allow-unsafe-code feature is enabled.

Re-exportsยง

pub use crate::errors::ConnectionError;
pub use crate::errors::ReplyError;
pub use crate::errors::ReplyOrIdError;

Modulesยง

atomic_u64 ๐Ÿ”’
Either AtomicU64 or emulating AtomicU64 through a Mutex.
pending_errors ๐Ÿ”’
Management of pending errors for the XCB connection.
raw_ffi ๐Ÿ”’
The low-level foreign function interface to interact with libxcb.

Structsยง

XCBConnection
A connection to an X11 server.

Enumsยง

ConnectError
An error that occurred while connecting to an X11 server
ParseError
An error occurred while parsing some data

Functionsยง

load_libxcb
Tries to dynamically load libxcb, returning an error on failure.
reconstruct_full_sequence_impl ๐Ÿ”’
Reconstruct a partial sequence number based on a recently received โ€˜fullโ€™ sequence number.

Type Aliasesยง

BufWithFds
A combination of a buffer and a list of file descriptors for use by XCBConnection.
Buffer ๐Ÿ”’
RawEventAndSeqNumber
The raw bytes of an event received by XCBConnection and its sequence number.