[][src]Struct penrose::xcb::Api

pub struct Api { /* fields omitted */ }

A connection to the X server using the XCB C API

Implementations

impl Api[src]

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

Connect to the X server using the XCB API

Each Api contains and embedded xcb Connection which is used for making all api calls through to the X server. Some state is cached in the Api itself in order to prevent redundant calls through to the X server.

Creating a new Api instance will establish the underlying connection and if the xcb_keysyms feature is enabled, pull KeyCode mappings from the user system using xmodmap.

Trait Implementations

impl Debug for Api[src]

impl Drop for Api[src]

impl XcbApi for Api[src]

Auto Trait Implementations

impl RefUnwindSafe for Api[src]

impl !Send for Api[src]

impl !Sync for Api[src]

impl Unpin for Api[src]

impl UnwindSafe for Api[src]

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.