Enum std::io::ErrorKindUnstable [-] [+] [src]

pub enum ErrorKind {
    FileNotFound,
    PermissionDenied,
    ConnectionRefused,
    ConnectionReset,
    ConnectionAborted,
    NotConnected,
    BrokenPipe,
    PathAlreadyExists,
    PathDoesntExist,
    MismatchedFileTypeForOperation,
    ResourceUnavailable,
    InvalidInput,
    TimedOut,
    WriteZero,
    Interrupted,
    Other,
}

A list specifying general categories of I/O error.

Variants

FileNotFound

The file was not found.

PermissionDenied

The file permissions disallowed access to this file.

ConnectionRefused

The connection was refused by the remote server.

ConnectionReset

The connection was reset by the remote server.

ConnectionAborted

The connection was aborted (terminated) by the remote server.

NotConnected

The network operation failed because it was not connected yet.

BrokenPipe

The operation failed because a pipe was closed.

PathAlreadyExists

A file already existed with that name.

PathDoesntExist

No file exists at that location.

MismatchedFileTypeForOperation

The path did not specify the type of file that this operation required. For example, attempting to copy a directory with the fs::copy() operation will fail with this error.

ResourceUnavailable

The operation temporarily failed (for example, because a signal was received), and retrying may succeed.

InvalidInput

A parameter was incorrect in a way that caused an I/O error not part of this list.

TimedOut

The I/O operation's timeout expired, causing it to be canceled.

WriteZero

An error returned when an operation could not be completed because a call to write returned Ok(0).

This typically means that an operation could only succeed if it wrote a particular number of bytes but only a smaller number of bytes could be written.

Interrupted

This operation was interrupted

Other

Any I/O error not part of this list.

Trait Implementations

Derived Implementations

impl Debug for ErrorKind

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for ErrorKind

fn clone(&self) -> ErrorKind

fn clone_from(&mut self, source: &Self)

impl Eq for ErrorKind

impl PartialEq for ErrorKind

fn eq(&self, __arg_0: &ErrorKind) -> bool

fn ne(&self, __arg_0: &ErrorKind) -> bool

impl Copy for ErrorKind