pub struct AxError(/* private fields */);Expand description
The error type used by ArceOS.
Implementations§
Source§impl AxError
impl AxError
Sourcepub fn canonicalize(self) -> Self
pub fn canonicalize(self) -> Self
Returns a canonicalized version of this error.
This method tries to convert LinuxError variants into their
corresponding AxErrorKind variants if possible.
§Examples
let linux_err = AxError::from(LinuxError::EACCES);
let canonical_err = linux_err.canonicalize();
assert_eq!(canonical_err, AxError::from(AxErrorKind::PermissionDenied));Source§impl AxError
impl AxError
Sourcepub const AddrInUse: Self
pub const AddrInUse: Self
An AxError with kind AxErrorKind::AddrInUse.
Sourcepub const AlreadyConnected: Self
pub const AlreadyConnected: Self
An AxError with kind AxErrorKind::AlreadyConnected.
Sourcepub const AlreadyExists: Self
pub const AlreadyExists: Self
An AxError with kind AxErrorKind::AlreadyExists.
Sourcepub const ArgumentListTooLong: Self
pub const ArgumentListTooLong: Self
An AxError with kind AxErrorKind::ArgumentListTooLong.
Sourcepub const BadAddress: Self
pub const BadAddress: Self
An AxError with kind AxErrorKind::BadAddress.
Sourcepub const BadFileDescriptor: Self
pub const BadFileDescriptor: Self
An AxError with kind AxErrorKind::BadFileDescriptor.
Sourcepub const BadState: Self
pub const BadState: Self
An AxError with kind AxErrorKind::BadState.
Sourcepub const BrokenPipe: Self
pub const BrokenPipe: Self
An AxError with kind AxErrorKind::BrokenPipe.
Sourcepub const ConnectionRefused: Self
pub const ConnectionRefused: Self
An AxError with kind AxErrorKind::ConnectionRefused.
Sourcepub const ConnectionReset: Self
pub const ConnectionReset: Self
An AxError with kind AxErrorKind::ConnectionReset.
Sourcepub const CrossesDevices: Self
pub const CrossesDevices: Self
An AxError with kind AxErrorKind::CrossesDevices.
Sourcepub const DirectoryNotEmpty: Self
pub const DirectoryNotEmpty: Self
An AxError with kind AxErrorKind::DirectoryNotEmpty.
Sourcepub const FilesystemLoop: Self
pub const FilesystemLoop: Self
An AxError with kind AxErrorKind::FilesystemLoop.
Sourcepub const IllegalBytes: Self
pub const IllegalBytes: Self
An AxError with kind AxErrorKind::IllegalBytes.
Sourcepub const InProgress: Self
pub const InProgress: Self
An AxError with kind AxErrorKind::InProgress.
Sourcepub const Interrupted: Self
pub const Interrupted: Self
An AxError with kind AxErrorKind::Interrupted.
Sourcepub const InvalidData: Self
pub const InvalidData: Self
An AxError with kind AxErrorKind::InvalidData.
Sourcepub const InvalidExecutable: Self
pub const InvalidExecutable: Self
An AxError with kind AxErrorKind::InvalidExecutable.
Sourcepub const InvalidInput: Self
pub const InvalidInput: Self
An AxError with kind AxErrorKind::InvalidInput.
Sourcepub const Io: Self
pub const Io: Self
An AxError with kind AxErrorKind::Io.
Sourcepub const IsADirectory: Self
pub const IsADirectory: Self
An AxError with kind AxErrorKind::IsADirectory.
Sourcepub const NameTooLong: Self
pub const NameTooLong: Self
An AxError with kind AxErrorKind::NameTooLong.
Sourcepub const NoMemory: Self
pub const NoMemory: Self
An AxError with kind AxErrorKind::NoMemory.
Sourcepub const NoSuchDevice: Self
pub const NoSuchDevice: Self
An AxError with kind AxErrorKind::NoSuchDevice.
Sourcepub const NoSuchProcess: Self
pub const NoSuchProcess: Self
An AxError with kind AxErrorKind::NoSuchProcess.
Sourcepub const NotADirectory: Self
pub const NotADirectory: Self
An AxError with kind AxErrorKind::NotADirectory.
Sourcepub const NotASocket: Self
pub const NotASocket: Self
An AxError with kind AxErrorKind::NotASocket.
Sourcepub const NotATty: Self
pub const NotATty: Self
An AxError with kind AxErrorKind::NotATty.
Sourcepub const NotConnected: Self
pub const NotConnected: Self
An AxError with kind AxErrorKind::NotConnected.
Sourcepub const NotFound: Self
pub const NotFound: Self
An AxError with kind AxErrorKind::NotFound.
Sourcepub const OperationNotPermitted: Self
pub const OperationNotPermitted: Self
An AxError with kind AxErrorKind::OperationNotPermitted.
Sourcepub const OperationNotSupported: Self
pub const OperationNotSupported: Self
An AxError with kind AxErrorKind::OperationNotSupported.
Sourcepub const OutOfRange: Self
pub const OutOfRange: Self
An AxError with kind AxErrorKind::OutOfRange.
Sourcepub const PermissionDenied: Self
pub const PermissionDenied: Self
An AxError with kind AxErrorKind::PermissionDenied.
Sourcepub const ReadOnlyFilesystem: Self
pub const ReadOnlyFilesystem: Self
An AxError with kind AxErrorKind::ReadOnlyFilesystem.
Sourcepub const ResourceBusy: Self
pub const ResourceBusy: Self
An AxError with kind AxErrorKind::ResourceBusy.
Sourcepub const StorageFull: Self
pub const StorageFull: Self
An AxError with kind AxErrorKind::StorageFull.
Sourcepub const TimedOut: Self
pub const TimedOut: Self
An AxError with kind AxErrorKind::TimedOut.
Sourcepub const TooManyOpenFiles: Self
pub const TooManyOpenFiles: Self
An AxError with kind AxErrorKind::TooManyOpenFiles.
Sourcepub const UnexpectedEof: Self
pub const UnexpectedEof: Self
An AxError with kind AxErrorKind::UnexpectedEof.
Sourcepub const Unsupported: Self
pub const Unsupported: Self
An AxError with kind AxErrorKind::Unsupported.
Sourcepub const WouldBlock: Self
pub const WouldBlock: Self
An AxError with kind AxErrorKind::WouldBlock.
Sourcepub const WriteZero: Self
pub const WriteZero: Self
An AxError with kind AxErrorKind::WriteZero.