Lyricdev
GitHub

enum IoErrorKind

pub enum IoErrorKind :: [Equatable]

Conforms to Equatable.

Classifies what went wrong in an input or an output — a file's, a socket's, a process's, memory's alike. @NonExhaustive: a match over it outside std writes a _, which a later kind needs.

Variants

NotFound
PermissionDenied
AlreadyExists
IsDirectory
NotDirectory
InvalidInput
InvalidData
UnexpectedEof
TimedOut
ConnectionRefused
ConnectionReset
AddrInUse
BrokenPipe
Closed
Unsupported
Other { code: int }

A code of the system that no kind above names.