Skip to main content

IoError

Enum IoError 

Source
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

Source

pub const fn canonicalize(self) -> Self

Returns the stable I/O-domain error used by retry logic.

Trait Implementations§

Source§

impl Clone for IoError

Source§

fn clone(&self) -> IoError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for IoError

Source§

impl Debug for IoError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for IoError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for IoError

Source§

impl Error for IoError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for IoError

Source§

fn eq(&self, other: &IoError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for IoError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.