Enum x11rb::errors::ConnectError [−][src]
An error that occurred while connecting to an X11 server
Variants (Non-exhaustive)
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
.
Out of memory.
This is XCB_CONN_CLOSED_MEM_INSUFFICIENT
.
Error during parsing of display string.
This is XCB_CONN_CLOSED_PARSE_ERR
.
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.
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]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for ConnectError
[src]
impl From<ParseError> for ConnectError
[src]
fn from(err: ParseError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl !UnwindSafe for ConnectError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,