Trait as_raw_xcb_connection::AsRawXcbConnection

source ·
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§

source

fn as_raw_xcb_connection(&self) -> *mut xcb_connection_t

Get a raw xcb connection pointer from this object.

Implementations on Foreign Types§

source§

impl<T: AsRawXcbConnection + ToOwned + ?Sized> AsRawXcbConnection for Cow<'_, T>

source§

impl<T: AsRawXcbConnection + ?Sized> AsRawXcbConnection for &T

source§

impl<T: AsRawXcbConnection + ?Sized> AsRawXcbConnection for &mut T

source§

impl<T: AsRawXcbConnection + ?Sized> AsRawXcbConnection for Box<T>

source§

impl<T: AsRawXcbConnection + ?Sized> AsRawXcbConnection for Rc<T>

source§

impl<T: AsRawXcbConnection + ?Sized> AsRawXcbConnection for Arc<T>

Implementors§