pub enum ConnError {
Connection,
ClosedExtNotSupported,
ClosedMemInsufficient,
ClosedReqLenExceed,
ClosedParseErr,
ClosedInvalidScreen,
ClosedFdPassingFailed,
}
Expand description
Error type that is returned by Connection::has_error
.
Variants
Connection
xcb connection errors because of socket, pipe and other stream errors.
ClosedExtNotSupported
xcb connection shutdown because of extension not supported
ClosedMemInsufficient
malloc(), calloc() and realloc() error upon failure, for eg ENOMEM
ClosedReqLenExceed
Connection closed, exceeding request length that server accepts.
ClosedParseErr
Connection closed, error during parsing display string.
ClosedInvalidScreen
Connection closed because the server does not have a screen matching the display.
ClosedFdPassingFailed
Connection closed because some file descriptor passing operation failed.
Trait Implementations
sourceimpl Error for ConnError
impl Error for ConnError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConnError
impl Send for ConnError
impl Sync for ConnError
impl Unpin for ConnError
impl UnwindSafe for ConnError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more