pub enum IoError {
Show 49 variants
AddrInUse,
AlreadyConnected,
AddressFamilyUnsupported,
AlreadyExists,
ArgumentListTooLong,
BadAddress,
BadFileDescriptor,
BadState,
BrokenPipe,
ConnectionRefused,
ConnectionReset,
CrossesDevices,
DirectoryNotEmpty,
DestAddrRequired,
FilesystemLoop,
FileTooLarge,
IllegalBytes,
InProgress,
Interrupted,
InvalidData,
InvalidExecutable,
InvalidInput,
Io,
IsADirectory,
NameTooLong,
MessageTooLong,
NoMemory,
NoSuchDevice,
NoSuchDeviceOrAddress,
NoSuchProcess,
NotADirectory,
NotASocket,
NotATty,
NotConnected,
NotFound,
OperationNotPermitted,
OperationNotSupported,
OutOfRange,
PermissionDenied,
ProtocolOptionUnsupported,
ReadOnlyFilesystem,
ResourceBusy,
StorageFull,
TimedOut,
TooManyOpenFiles,
UnexpectedEof,
Unsupported,
WouldBlock,
WriteZero,
}Expand description
Errors owned by the ax-io I/O capability domain.
Variants§
AddrInUse
The requested address is already bound by another endpoint.
AlreadyConnected
The endpoint is already connected.
AddressFamilyUnsupported
The endpoint does not support the requested address family.
AlreadyExists
The requested I/O object already exists.
ArgumentListTooLong
The supplied argument list exceeds the supported limit.
BadAddress
An address supplied to the I/O operation cannot be accessed.
BadFileDescriptor
The supplied file descriptor is invalid.
BadState
The I/O object cannot perform the operation in its current state.
BrokenPipe
The peer has closed a pipe used by the operation.
ConnectionRefused
The remote endpoint refused the connection.
ConnectionReset
The peer reset an established connection.
CrossesDevices
The operation would cross filesystem or device boundaries.
DirectoryNotEmpty
The directory must be empty before the operation can complete.
DestAddrRequired
The operation requires a destination address.
FilesystemLoop
Path traversal encountered a filesystem loop.
FileTooLarge
The requested file size exceeds the supported limit.
IllegalBytes
Input contains an invalid byte sequence.
InProgress
The nonblocking I/O operation has started but is not complete.
Interrupted
The operation was interrupted before completion.
InvalidData
Input data is malformed for the requested operation.
InvalidExecutable
The executable image has an unsupported or malformed format.
InvalidInput
An input parameter is invalid for the requested operation.
Io
The underlying I/O operation failed without a more specific reason.
IsADirectory
The operation expected a non-directory object.
NameTooLong
A path component or object name exceeds the supported limit.
MessageTooLong
The message exceeds the endpoint’s supported size.
NoMemory
Memory required by the operation could not be allocated.
NoSuchDevice
The requested device does not exist.
NoSuchDeviceOrAddress
The requested device or address does not exist.
NoSuchProcess
The requested process does not exist.
NotADirectory
The operation expected a directory object.
NotASocket
The operation expected a socket object.
NotATty
The operation expected a terminal device.
NotConnected
The endpoint is not connected.
NotFound
The requested I/O object does not exist.
OperationNotPermitted
The caller is not permitted to perform the operation.
OperationNotSupported
The object does not support this operation.
OutOfRange
The operation produced a value outside its representable range.
PermissionDenied
Access permissions deny the requested operation.
ProtocolOptionUnsupported
The endpoint does not recognize the requested protocol option.
ReadOnlyFilesystem
The target filesystem is read-only.
ResourceBusy
A resource required by the operation is busy.
StorageFull
The target storage has no free space.
TimedOut
The operation did not complete before its deadline.
TooManyOpenFiles
The process has reached its open-file limit.
UnexpectedEof
The input ended before the requested data was available.
Unsupported
The requested I/O capability is not implemented.
WouldBlock
The operation cannot complete without blocking.
WriteZero
A write operation completed without writing any data.
Implementations§
Source§impl IoError
impl IoError
Sourcepub const fn canonicalize(self) -> Self
pub const fn canonicalize(self) -> Self
Returns the stable I/O-domain error used by retry logic.
Trait Implementations§
impl Copy for IoError
impl Eq for IoError
Source§impl Error for IoError
impl Error for IoError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()