[][src]Enum breadx::error::BreadError

pub enum BreadError {
    StaticMsg(&'static str),
    UnableToParseConnection,
    UnableToOpenConnection,
    Io(IoError),
    FailedToConnect,
    BadObjectRead(Option<&'static str>),
    ExtensionNotPresent(&'static str),
    XProtocol {
        error_code: ErrorCode,
        minor_code: u8,
        major_code: u8,
        sequence: u16,
    },
    ClosedConnection,
    WouldBlock,
}

The common error type returned by breadx functions.

Variants

StaticMsg(&'static str)
UnableToParseConnection

Unable to parse connection name.

UnableToOpenConnection

Unable to open connection to X11 server.

IO Error

FailedToConnect

Unable to open connection to the X11 server.

BadObjectRead(Option<&'static str>)

BadReadError

ExtensionNotPresent(&'static str)

Required extension was not present.

XProtocol

An error propogated by the X11 server.

Fields of XProtocol

error_code: ErrorCodeminor_code: u8major_code: u8sequence: u16
ClosedConnection

The X connection closed without telling us.

WouldBlock

Attempted to call an async function on a blocking object.

Trait Implementations

impl Debug for BreadError[src]

impl Display for BreadError[src]

impl Error for BreadError[src]

impl From<Error> for BreadError[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.