Enum x11rb::errors::ConnectError[][src]

#[non_exhaustive]pub enum ConnectError {
    UnknownError,
    ParseError(ParseError),
    InsufficientMemory,
    DisplayParsingError,
    InvalidScreen,
    IOError(Error),
    ZeroIDMask,
    SetupAuthenticate(SetupAuthenticate),
    SetupFailed(SetupFailed),
}

An error that occurred while connecting to an X11 server

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).

ParseError(ParseError)

Error while parsing some data, see ParseError.

InsufficientMemory

Out of memory.

This is XCB_CONN_CLOSED_MEM_INSUFFICIENT.

DisplayParsingError

Error during parsing of display string.

This is XCB_CONN_CLOSED_PARSE_ERR.

InvalidScreen

Server does not have a screen matching the display.

This is XCB_CONN_CLOSED_INVALID_SCREEN.

IOError(Error)

An I/O error occurred on the connection.

ZeroIDMask

Invalid ID mask provided by the server.

The value of resource_id_mask in the Setup provided by the server was zero.

SetupAuthenticate(SetupAuthenticate)

The server rejected the connection with a SetupAuthenticate message.

SetupFailed(SetupFailed)

The server rejected the connection with a SetupFailed message.

Trait Implementations

impl Debug for ConnectError[src]

impl Display for ConnectError[src]

impl Error for ConnectError[src]

impl From<Error> for ConnectError[src]

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