#[non_exhaustive]pub enum ErrorKind {
Show 20 variants
NotFound,
PermissionDenied,
ConnectionRefused,
ConnectionReset,
ConnectionAborted,
NotConnected,
AddrInUse,
AddrNotAvailable,
BrokenPipe,
AlreadyExists,
WouldBlock,
InvalidInput,
InvalidData,
TimedOut,
WriteZero,
Interrupted,
UnexpectedEof,
Unsupported,
OutOfMemory,
Other,
}Expand description
Portable error classification. This is a superset of embedded_io::ErrorKind
and retains the std::io conditions Hadris needs for helper operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotFound
An entity was not found.
PermissionDenied
An operation lacked sufficient permissions.
ConnectionRefused
A connection attempt was refused.
ConnectionReset
A connection was reset by its peer.
ConnectionAborted
A connection was aborted locally.
NotConnected
The endpoint is not connected.
AddrInUse
The requested address is already in use.
AddrNotAvailable
The requested address is unavailable.
BrokenPipe
A write targeted a closed pipe or connection.
AlreadyExists
An entity already exists.
WouldBlock
The operation would block.
InvalidInput
An input parameter was invalid.
InvalidData
Input data was malformed.
TimedOut
The operation timed out.
WriteZero
A write produced no progress.
Interrupted
The operation was interrupted and may be retried.
UnexpectedEof
Input ended before the requested data was read.
Unsupported
The requested operation is unsupported.
OutOfMemory
The operation could not allocate required memory.
Other
An error without a more specific portable classification.
Implementations§
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
Source§impl Error for ErrorKind
impl Error for ErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()