pub unsafe trait AsRawXcbConnection {
// Required method
fn as_raw_xcb_connection(&self) -> *mut xcb_connection_t;
}
Expand description
A trait to extract a raw xcb_connection_t
from an object.
§Safety
This trait is unsafe. Implementations must provide a valid connection pointer that can be used with libxcb C functions. This pointer must be valid for as long as the object on which this trait is implemented. This means that the connection cannot be deallocated while the object is still in use.
Required Methods§
sourcefn as_raw_xcb_connection(&self) -> *mut xcb_connection_t
fn as_raw_xcb_connection(&self) -> *mut xcb_connection_t
Get a raw xcb connection pointer from this object.