pub enum ErrorKind {
Show 38 variants
NotFound,
PermissionDenied,
ConnectionRefused,
ConnectionReset,
HostUnreachable,
NetworkUnreachable,
ConnectionAborted,
NotConnected,
AddrInUse,
AddrNotAvailable,
NetworkDown,
BrokenPipe,
AlreadyExists,
WouldBlock,
NotADirectory,
IsADirectory,
DirectoryNotEmpty,
ReadOnlyFilesystem,
StaleNetworkFileHandle,
InvalidInput,
InvalidData,
TimedOut,
WriteZero,
StorageFull,
NotSeekable,
QuotaExceeded,
ResourceBusy,
ExecutableFileBusy,
Deadlock,
CrossesDevices,
TooManyLinks,
InvalidFilename,
ArgumentListTooLong,
Interrupted,
Unsupported,
UnexpectedEof,
OutOfMemory,
Other,
}Expand description
Represents error variants for the library.
Variants§
NotFound
PermissionDenied
ConnectionRefused
ConnectionReset
HostUnreachable
NetworkUnreachable
ConnectionAborted
NotConnected
AddrInUse
AddrNotAvailable
NetworkDown
BrokenPipe
AlreadyExists
WouldBlock
NotADirectory
IsADirectory
DirectoryNotEmpty
ReadOnlyFilesystem
StaleNetworkFileHandle
InvalidInput
InvalidData
TimedOut
WriteZero
StorageFull
NotSeekable
QuotaExceeded
ResourceBusy
ExecutableFileBusy
Deadlock
CrossesDevices
TooManyLinks
InvalidFilename
ArgumentListTooLong
Interrupted
Unsupported
UnexpectedEof
OutOfMemory
Other
Implementations§
Source§impl ErrorKind
impl ErrorKind
pub const NOT_FOUND: &str = "not_found"
pub const PERMISSION_DENIED: &str = "permission_denied"
pub const CONNECTION_REFUSED: &str = "connection_refused"
pub const CONNECTION_RESET: &str = "connection_reset"
pub const HOST_UNREACHABLE: &str = "host_unreachable"
pub const NETWORK_UNREACHABLE: &str = "network_unreachable"
pub const CONNECTION_ABORTED: &str = "connection_aborted"
pub const NOT_CONNECTED: &str = "not_connected"
pub const ADDR_IN_USE: &str = "addr_in_use"
pub const ADDR_NOT_AVAILABLE: &str = "addr_not_available"
pub const NETWORK_DOWN: &str = "network_down"
pub const BROKEN_PIPE: &str = "broken_pipe"
pub const ALREADY_EXISTS: &str = "already_exists"
pub const WOULD_BLOCK: &str = "would_block"
pub const NOT_A_DIRECTORY: &str = "not_a_directory"
pub const IS_A_DIRECTORY: &str = "is_a_directory"
pub const DIRECTORY_NOT_EMPTY: &str = "directory_not_empty"
pub const READ_ONLY_FILESYSTEM: &str = "read_only_filesystem"
pub const STALE_NETWORK_FILE_HANDLE: &str = "stale_network_file_handle"
pub const INVALID_INPUT: &str = "invalid_input"
pub const INVALID_DATA: &str = "invalid_data"
pub const TIMED_OUT: &str = "timed_out"
pub const WRITE_ZERO: &str = "write_zero"
pub const STORAGE_FULL: &str = "storage_full"
pub const NOT_SEEKABLE: &str = "not_seekable"
pub const QUOTA_EXCEEDED: &str = "quota_exceeded"
pub const RESOURCE_BUSY: &str = "resource_busy"
pub const EXECUTABLE_FILE_BUSY: &str = "executable_file_busy"
pub const DEADLOCK: &str = "deadlock"
pub const CROSSES_DEVICES: &str = "crosses_devices"
pub const TOO_MANY_LINKS: &str = "too_many_links"
pub const INVALID_FILENAME: &str = "invalid_filename"
pub const ARGUMENT_LIST_TOO_LONG: &str = "argument_list_too_long"
pub const INTERRUPTED: &str = "interrupted"
pub const UNSUPPORTED: &str = "unsupported"
pub const UNEXPECTED_EOF: &str = "unexpected_eof"
pub const OUT_OF_MEMORY: &str = "out_of_memory"
pub const OTHER: &str = "other"
Sourcepub const fn from_io(err: ErrorKind) -> Self
pub const fn from_io(err: ErrorKind) -> Self
Converts the ErrorKind to a std::io::ErrorKind.
Sourcepub const fn as_io(&self) -> ErrorKind
pub const fn as_io(&self) -> ErrorKind
Converts the ErrorKind to a std::io::ErrorKind.
pub const fn as_str(&self) -> &'static str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorKind
impl<'de> Deserialize<'de> for ErrorKind
Source§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
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.