pub enum ConnError {
Connection,
ClosedExtNotSupported,
ClosedMemInsufficient,
ClosedReqLenExceed,
ClosedParseErr,
ClosedInvalidScreen,
ClosedFdPassingFailed,
XOpenDisplay,
}
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.
XOpenDisplay
XOpenDisplay returned NULL
Trait Implementations§
source§impl Error for ConnError
impl Error for ConnError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Auto Trait Implementations§
impl Freeze for ConnError
impl RefUnwindSafe for ConnError
impl Send for ConnError
impl Sync for ConnError
impl Unpin for ConnError
impl UnwindSafe for ConnError
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