[][src]Enum penrose::xcb::XcbError

pub enum XcbError {
    Connection(ConnError),
    EmptyResponse(String),
    Io(Error),
    MissingProp(AtomWinId),
    NoScreens,
    NonUtf8Prop(FromUtf8Error),
    QueryFailed(&'static str),
    Randr(String),
    Raw(String),
    Strum(ParseError),
    UnknownScreen(usizeusize),
    XcbGeneric(Error<xcb_generic_error_t>),
    Pango(String),
    UnintialisedSurface(WinId),
    UnknownMouseButton(u8),
}

Enum to store the various ways that operations can fail inside of the XCB implementations of penrose traits.

Variants

Connection(ConnError)

Unable to establish a connection to the X server

EmptyResponse(String)

A xcb query failed to return a value

Io(Error)

An IO Error was encountered

MissingProp(AtomWinId)

A requested client property was empty

NoScreens

No screens were found

NonUtf8Prop(FromUtf8Error)

A string property on a window was invalid utf8

QueryFailed(&'static str)

An attempt to determine a certain property of the running system failed

Randr(String)

A query via the randr API was unsuccessful

Raw(String)

A generic error type for use in user code when needing to construct a simple XcbError.

Strum(ParseError)

Parsing a strum generated enum from a str failed.

UnknownScreen(usizeusize)

Screen data for an unknown screen was requested

Wrapper around low level XCB C API errors

Pango(String)

Error in using the pango API

UnintialisedSurface(WinId)

An attempt was made to fetch a surface for a client before creating it

UnknownMouseButton(u8)

A user specified mouse binding contained an invalid button

Trait Implementations

impl Debug for XcbError[src]

impl Display for XcbError[src]

impl Error for XcbError[src]

impl From<ConnError> for XcbError[src]

impl From<Error<xcb_generic_error_t>> for XcbError[src]

impl From<Error> for XcbError[src]

impl From<FromUtf8Error> for XcbError[src]

impl From<ParseError> for XcbError[src]

impl From<XcbError> for DrawError[src]

impl From<XcbError> for PenroseError[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> ToString for T where
    T: Display + ?Sized
[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.