Expand description

This crate provides the trait AsRawXcbConnection.

The idea is to facilitate interoperability in the ecosystem. The problem is as follows:

There are multiple crates that wrap the libxcb C API to provide a “connection” type. There are also multiple crates wrapping various C libraries that need a pointer to xcb_connection_t to work correctly.

Without this library, API consumers must pick one Rust library that wraps libxcb and only accept this type in its public API. Worse, one must also pick a specific version of the crate and would then only work with that type.

The trait AsRawXcbConnection breaks this connection. All libraries that wrap libxcb can implement this trait. This makes one independent from specific versions of API consumer crates.

Structs§

  • An assertion that this pointer is valid for as long as the underlying connection.

Enums§

Traits§