#[non_exhaustive]pub enum ServerError {
ClientNotExists,
ReadProtocol(ReadError),
XimError(ErrorCode, String),
InvalidReply,
Internal(String),
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.
ClientNotExists
ReadProtocol(ReadError)
XimError(ErrorCode, String)
InvalidReply
Internal(String)
Other(Box<dyn Error + Send + Sync>)
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
Available on crate feature std only.
impl Error for ServerError
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 ServerError
Available on crate feature x11rb-server only.
impl From<ConnectError> for ServerError
Available on crate feature
x11rb-server 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 ServerError
Available on crate feature x11rb-server only.
impl From<ConnectionError> for ServerError
Available on crate feature
x11rb-server 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 ServerError
Available on crate feature x11rb-server only.
impl From<ParseError> for ServerError
Available on crate feature
x11rb-server 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 ServerError
impl From<ReadError> for ServerError
Source§impl From<ReplyError> for ServerError
Available on crate feature x11rb-server only.
impl From<ReplyError> for ServerError
Available on crate feature
x11rb-server 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 ServerError
Available on crate feature x11rb-server only.
impl From<ReplyOrIdError> for ServerError
Available on crate feature
x11rb-server 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 ServerError
impl !RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl !UnwindSafe for ServerError
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