Enum std::old_io::IoErrorKindUnstable [-] [+] [src]

pub enum IoErrorKind {
    OtherIoError,
    EndOfFile,
    FileNotFound,
    PermissionDenied,
    ConnectionFailed,
    Closed,
    ConnectionRefused,
    ConnectionReset,
    ConnectionAborted,
    NotConnected,
    BrokenPipe,
    PathAlreadyExists,
    PathDoesntExist,
    MismatchedFileTypeForOperation,
    ResourceUnavailable,
    IoUnavailable,
    InvalidInput,
    TimedOut,
    ShortWrite(usize),
    NoProgress,
}

A list specifying general categories of I/O error.

Variants

OtherIoError

Any I/O error not part of this list.

EndOfFile

The operation could not complete because end of file was reached.

FileNotFound

The file was not found.

PermissionDenied

The file permissions disallowed access to this file.

ConnectionFailed

A network connection failed for some reason not specified in this list.

Closed

The network operation failed because the network connection was closed.

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.

IoUnavailable

No I/O functionality is available for this task.

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.

ShortWrite

This write operation failed to write all of its data.

Normally the write() method on a Writer guarantees that all of its data has been written, but some operations may be terminated after only partially writing some data. An example of this is a timed out write which successfully wrote a known number of bytes, but bailed out after doing so.

The payload contained as part of this variant is the number of bytes which are known to have been successfully written.

NoProgress

The Reader returned 0 bytes from read() too many times.

Trait Implementations

Derived Implementations

impl Debug for IoErrorKind

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

impl Clone for IoErrorKind

fn clone(&self) -> IoErrorKind

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

impl Eq for IoErrorKind

impl PartialEq for IoErrorKind

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

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

impl Copy for IoErrorKind