Enum x11rb::errors::ConnectionError[][src]

#[non_exhaustive]pub enum ConnectionError {
    UnknownError,
    UnsupportedExtension,
    MaximumRequestLengthExceeded,
    FDPassingFailed,
    ParseError(ParseError),
    InsufficientMemory,
    IOError(Error),
}

An error that occurred on an already established X11 connection

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownError

An unknown error occurred.

One situation were this error is used when libxcb indicates an error that does not match any of the defined error conditions. Thus, libxcb is violating its own API (or new error cases were defined, but are not yet handled by x11rb).

UnsupportedExtension

An X11 extension was not supported by the server.

This corresponds to XCB_CONN_CLOSED_EXT_NOTSUPPORTED.

MaximumRequestLengthExceeded

A request larger than the maximum request length was sent.

This corresponds to XCB_CONN_CLOSED_REQ_LEN_EXCEED.

FDPassingFailed

File descriptor passing failed.

This corresponds to XCB_CONN_CLOSED_FDPASSING_FAILED.

ParseError(ParseError)

Error while parsing some data, see ParseError.

InsufficientMemory

Out of memory.

This is XCB_CONN_CLOSED_MEM_INSUFFICIENT.

IOError(Error)

An I/O error occurred on the connection.

Trait Implementations

impl Debug for ConnectionError[src]

impl Display for ConnectionError[src]

impl Error for ConnectionError[src]

impl From<ConnectionError> for ReplyError[src]

impl From<ConnectionError> for ReplyOrIdError[src]

impl From<Error> for ConnectionError[src]

impl From<ParseError> for ConnectionError[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.