#[non_exhaustive]pub enum ConnectionError {
UnknownError(String),
UnsupportedExtension(String),
MaximumRequestLengthExceeded(String),
InsufficientMemory,
Protocol(Error),
StdErr(Error),
Syscall(Error),
Id(IdError),
Io(&'static str),
}
Expand description
An error that occurred on an already established X11 connection
Variants (Non-exhaustive)§
This enum is marked as 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(String)
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(String)
An X11 extension was not supported by the server.
This corresponds to XCB_CONN_CLOSED_EXT_NOTSUPPORTED
.
MaximumRequestLengthExceeded(String)
A request larger than the maximum request length was sent.
This corresponds to XCB_CONN_CLOSED_REQ_LEN_EXCEED
.
InsufficientMemory
Out of memory.
This is XCB_CONN_CLOSED_MEM_INSUFFICIENT
.
Protocol(Error)
StdErr(Error)
Syscall(Error)
Id(IdError)
Io(&'static str)
Trait Implementations§
source§impl Clone for ConnectionError
impl Clone for ConnectionError
source§fn clone(&self) -> ConnectionError
fn clone(&self) -> ConnectionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectionError
impl Debug for ConnectionError
source§impl Display for ConnectionError
impl Display for ConnectionError
source§impl From<Error> for ConnectionError
impl From<Error> for ConnectionError
source§impl From<Error> for ConnectionError
impl From<Error> for ConnectionError
source§impl From<Error> for ConnectionError
impl From<Error> for ConnectionError
Auto Trait Implementations§
impl Freeze for ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more