#[non_exhaustive]pub enum ErrorKind {
Show 15 variants
None,
External,
LinkedLibrary(&'static str),
Authentication,
Configuration,
ProtocolError,
ProtocolNotSupported,
Bug,
Network(NetworkErrorKind),
TimedOut,
OSError,
Platform,
NotImplemented,
NotSupported,
ValueError,
}
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.
None
External
LinkedLibrary(&'static str)
Authentication
Configuration
ProtocolError
Protocol error.
EPROTO 71 Protocol error
ProtocolNotSupported
Protocol is not supported. It could be the wrong type or version.
Bug
Network(NetworkErrorKind)
TimedOut
OSError
Platform
NotImplemented
NotSupported
ValueError
Implementations§
source§impl ErrorKind
impl ErrorKind
pub fn is_authentication(&self) -> bool
pub fn is_bug(&self) -> bool
pub fn is_configuration(&self) -> bool
pub fn is_external(&self) -> bool
pub fn is_from_linked_library(&self) -> bool
pub fn is_network(&self) -> bool
pub fn is_network_down(&self) -> bool
pub fn is_not_implemented(&self) -> bool
pub fn is_not_supported(&self) -> bool
pub fn is_oserror(&self) -> bool
pub fn is_protocol_error(&self) -> bool
pub fn is_protocol_not_supported(&self) -> bool
pub fn is_timeout(&self) -> bool
pub fn is_value_error(&self) -> bool
Trait Implementations§
source§impl From<NetworkErrorKind> for ErrorKind
impl From<NetworkErrorKind> for ErrorKind
source§fn from(kind: NetworkErrorKind) -> Self
fn from(kind: NetworkErrorKind) -> Self
Converts to this type from the input type.
source§impl PartialEq for ErrorKind
impl PartialEq for ErrorKind
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.