Enum std::io::IoErrorKind
pub enum IoErrorKind { OtherIoError, EndOfFile, FileNotFound, PermissionDenied, ConnectionFailed, Closed, ConnectionRefused, ConnectionReset, ConnectionAborted, NotConnected, BrokenPipe, PathAlreadyExists, PathDoesntExist, MismatchedFileTypeForOperation, ResourceUnavailable, IoUnavailable, InvalidInput, }
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 cloesd. |
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 |
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. |
Trait Implementations
Derived Implementations
impl Show for IoErrorKind
impl Clone for IoErrorKind
fn clone(&self) -> IoErrorKind
Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.
fn clone_from(&mut self, source: &Self)
Perform copy-assignment from source
.
a.clone_from(&b)
is equivalent to a = b.clone()
in functionality,
but can be overridden to reuse the resources of a
to avoid unnecessary
allocations.