#[non_exhaustive]pub enum IoErrorKind {
Show 20 variants
NotFound,
PermissionDenied,
ConnectionRefused,
ConnectionReset,
ConnectionAborted,
NotConnected,
AddressInUse,
AddressNotAvailable,
BrokenPipe,
AlreadyExists,
WouldBlock,
InvalidInput,
InvalidData,
TimedOut,
WriteZero,
Interrupted,
Unsupported,
UnexpectedEof,
OutOfMemory,
Other,
}Expand description
Stable deterministic I/O failure classification.
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.
NotFound
Requested input was not found.
PermissionDenied
Input access was denied.
ConnectionRefused
A connection was refused.
ConnectionReset
A connection was reset.
ConnectionAborted
A connection was aborted.
NotConnected
An input source is not connected.
AddressInUse
An address is already in use.
AddressNotAvailable
An address is unavailable.
BrokenPipe
A pipe was closed.
AlreadyExists
A resource already exists.
WouldBlock
The operation would block.
InvalidInput
An I/O argument is invalid.
InvalidData
Input data is invalid.
TimedOut
The operation timed out.
WriteZero
A write produced no bytes.
Interrupted
The operation was interrupted.
Unsupported
The operation is unsupported.
UnexpectedEof
Input ended unexpectedly.
OutOfMemory
The operating system reported memory exhaustion.
Other
Any unclassified I/O failure.
Trait Implementations§
Source§impl Clone for IoErrorKind
impl Clone for IoErrorKind
impl Copy for IoErrorKind
Source§impl Debug for IoErrorKind
impl Debug for IoErrorKind
impl Eq for IoErrorKind
Source§impl From<ErrorKind> for IoErrorKind
impl From<ErrorKind> for IoErrorKind
Source§impl PartialEq for IoErrorKind
impl PartialEq for IoErrorKind
impl StructuralPartialEq for IoErrorKind
Auto Trait Implementations§
impl Freeze for IoErrorKind
impl RefUnwindSafe for IoErrorKind
impl Send for IoErrorKind
impl Sync for IoErrorKind
impl Unpin for IoErrorKind
impl UnsafeUnpin for IoErrorKind
impl UnwindSafe for IoErrorKind
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