#[non_exhaustive]pub enum IoErrorKind {
Show 19 variants
NotFound,
PermissionDenied,
ConnectionRefused,
ConnectionReset,
ConnectionAborted,
NotConnected,
AddrInUse,
AddrNotAvailable,
BrokenPipe,
AlreadyExists,
WouldBlock,
InvalidInput,
InvalidData,
TimedOut,
WriteZero,
Interrupted,
UnexpectedEof,
OutOfMemory,
Other,
}Expand description
Discriminator for the std::io::ErrorKind taxonomy, lifted into
a serializable form. Marked #[non_exhaustive] so future
versions can add new kinds without breaking downstream
match arms that include a default branch.
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
PermissionDenied
ConnectionRefused
ConnectionReset
ConnectionAborted
NotConnected
AddrInUse
AddrNotAvailable
BrokenPipe
AlreadyExists
WouldBlock
InvalidInput
InvalidData
TimedOut
WriteZero
Interrupted
UnexpectedEof
OutOfMemory
Other
Catch-all for nested sources that are not themselves
std::io::Error (e.g., a third-party crate’s error type
captured as source).
Implementations§
Trait Implementations§
Source§impl Clone for IoErrorKind
impl Clone for IoErrorKind
impl Copy for IoErrorKind
Source§impl Debug for IoErrorKind
impl Debug for IoErrorKind
Source§impl<'de> Deserialize<'de> for IoErrorKind
impl<'de> Deserialize<'de> for IoErrorKind
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 Eq for IoErrorKind
Source§impl From<ErrorKind> for IoErrorKind
impl From<ErrorKind> for IoErrorKind
Source§impl PartialEq for IoErrorKind
impl PartialEq for IoErrorKind
Source§impl Serialize for IoErrorKind
impl Serialize 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