Enum distant_core::data::ErrorKind [−][src]
pub enum ErrorKind {
Show 23 variants
NotFound,
PermissionDenied,
ConnectionRefused,
ConnectionReset,
ConnectionAborted,
NotConnected,
AddrInUse,
AddrNotAvailable,
BrokenPipe,
AlreadyExists,
WouldBlock,
InvalidInput,
InvalidData,
TimedOut,
WriteZero,
Interrupted,
Other,
UnexpectedEof,
Unsupported,
Loop,
TaskCancelled,
TaskPanicked,
Unknown,
}
Expand description
All possible kinds of errors that can be returned
Variants
An entity was not found, often a file
The operation lacked the necessary privileges to complete
The connection was refused by the remote server
The connection was reset by the remote server
The connection was aborted (terminated) by the remote server
The network operation failed because it was not connected yet
A socket address could not be bound because the address is already in use elsewhere
A nonexistent interface was requested or the requested address was not local
The operation failed because a pipe was closed
An entity already exists, often a file
The operation needs to block to complete, but the blocking operation was requested to not occur
A parameter was incorrect
Data not valid for the operation were encountered
The I/O operation’s timeout expired, causing it to be cancelled
An error returned when an operation could not be completed because a
call to write
returned Ok(0)
This operation was interrupted
Any I/O error not part of this list
An error returned when an operation could not be completed because an “end of file” was reached prematurely
This operation is unsupported on this platform
When a loop is encountered when walking a directory
When a task is cancelled
When a task panics
Catchall for an error that has no specific type
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more