[][src]Struct penrose::xcb::xconn::XcbConnection

pub struct XcbConnection { /* fields omitted */ }

Handles communication with an X server via the XCB library.

XcbConnection is a minimal implementation that does not make use of the full asyc capabilities of the underlying C XCB library.

Implementations

impl XcbConnection[src]

pub fn new() -> Result<Self>[src]

Establish a new connection to the running X server. Fails if unable to connect

pub fn xcb_connection(&self) -> &Connection[src]

Get a handle on the underlying XCB Connection used by Api to communicate with the X server.

pub fn api(&self) -> &Api[src]

Get a handle on the underlying Api to communicate with the X server.

pub fn api_mut(&mut self) -> &mut Api[src]

Get a mutable handle on the underlying Api to communicate with the X server.

pub fn known_atoms(&self) -> &HashMap<Atom, u32>[src]

The current interned Atom values known to the underlying Api connection

Trait Implementations

impl Debug for XcbConnection[src]

impl XConn for XcbConnection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.