AsRawXcbConnection

Trait 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>

Available on crate feature alloc only.
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>

Available on crate feature alloc only.
Source§

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

Available on crate feature alloc only.
Source§

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

Available on crate feature alloc only.

Implementors§