#[non_exhaustive]pub enum ClientError {
ReadProtocol(ReadError),
XimError(ErrorCode, String),
UnsupportedTransport,
InvalidReply,
NoXimServer,
Other(Box<dyn Error + Send + Sync>),
}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.
ReadProtocol(ReadError)
XimError(ErrorCode, String)
UnsupportedTransport
InvalidReply
NoXimServer
Other(Box<dyn Error + Send + Sync>)
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
Available on crate feature std only.
impl Error for ClientError
Available on crate feature
std only.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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ConnectError> for ClientError
Available on crate feature x11rb-client only.
impl From<ConnectError> for ClientError
Available on crate feature
x11rb-client only.Source§fn from(err: ConnectError) -> Self
fn from(err: ConnectError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionError> for ClientError
Available on crate feature x11rb-client only.
impl From<ConnectionError> for ClientError
Available on crate feature
x11rb-client only.Source§fn from(err: ConnectionError) -> Self
fn from(err: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for ClientError
Available on crate feature x11rb-client only.
impl From<ParseError> for ClientError
Available on crate feature
x11rb-client only.Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ReadError> for ClientError
impl From<ReadError> for ClientError
Source§impl From<ReplyError> for ClientError
Available on crate feature x11rb-client only.
impl From<ReplyError> for ClientError
Available on crate feature
x11rb-client only.Source§fn from(err: ReplyError) -> Self
fn from(err: ReplyError) -> Self
Converts to this type from the input type.
Source§impl From<ReplyOrIdError> for ClientError
Available on crate feature x11rb-client only.
impl From<ReplyOrIdError> for ClientError
Available on crate feature
x11rb-client only.Source§fn from(err: ReplyOrIdError) -> Self
fn from(err: ReplyOrIdError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
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