pub struct Error(/* private fields */);Expand description
The error type used by ArceOS.
Implementations§
Source§impl AxError
impl AxError
Sourcepub fn canonicalize(self) -> AxError
pub fn canonicalize(self) -> AxError
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: AxError
pub const AddrInUse: AxError
An AxError with kind AxErrorKind::AddrInUse.
Sourcepub const AlreadyConnected: AxError
pub const AlreadyConnected: AxError
An AxError with kind AxErrorKind::AlreadyConnected.
Sourcepub const AlreadyExists: AxError
pub const AlreadyExists: AxError
An AxError with kind AxErrorKind::AlreadyExists.
Sourcepub const ArgumentListTooLong: AxError
pub const ArgumentListTooLong: AxError
An AxError with kind AxErrorKind::ArgumentListTooLong.
Sourcepub const BadAddress: AxError
pub const BadAddress: AxError
An AxError with kind AxErrorKind::BadAddress.
Sourcepub const BadFileDescriptor: AxError
pub const BadFileDescriptor: AxError
An AxError with kind AxErrorKind::BadFileDescriptor.
Sourcepub const BadState: AxError
pub const BadState: AxError
An AxError with kind AxErrorKind::BadState.
Sourcepub const BrokenPipe: AxError
pub const BrokenPipe: AxError
An AxError with kind AxErrorKind::BrokenPipe.
Sourcepub const ConnectionRefused: AxError
pub const ConnectionRefused: AxError
An AxError with kind AxErrorKind::ConnectionRefused.
Sourcepub const ConnectionReset: AxError
pub const ConnectionReset: AxError
An AxError with kind AxErrorKind::ConnectionReset.
Sourcepub const CrossesDevices: AxError
pub const CrossesDevices: AxError
An AxError with kind AxErrorKind::CrossesDevices.
Sourcepub const DirectoryNotEmpty: AxError
pub const DirectoryNotEmpty: AxError
An AxError with kind AxErrorKind::DirectoryNotEmpty.
Sourcepub const FilesystemLoop: AxError
pub const FilesystemLoop: AxError
An AxError with kind AxErrorKind::FilesystemLoop.
Sourcepub const IllegalBytes: AxError
pub const IllegalBytes: AxError
An AxError with kind AxErrorKind::IllegalBytes.
Sourcepub const InProgress: AxError
pub const InProgress: AxError
An AxError with kind AxErrorKind::InProgress.
Sourcepub const Interrupted: AxError
pub const Interrupted: AxError
An AxError with kind AxErrorKind::Interrupted.
Sourcepub const InvalidData: AxError
pub const InvalidData: AxError
An AxError with kind AxErrorKind::InvalidData.
Sourcepub const InvalidExecutable: AxError
pub const InvalidExecutable: AxError
An AxError with kind AxErrorKind::InvalidExecutable.
Sourcepub const InvalidInput: AxError
pub const InvalidInput: AxError
An AxError with kind AxErrorKind::InvalidInput.
Sourcepub const Io: AxError
pub const Io: AxError
An AxError with kind AxErrorKind::Io.
Sourcepub const IsADirectory: AxError
pub const IsADirectory: AxError
An AxError with kind AxErrorKind::IsADirectory.
Sourcepub const NameTooLong: AxError
pub const NameTooLong: AxError
An AxError with kind AxErrorKind::NameTooLong.
Sourcepub const NoMemory: AxError
pub const NoMemory: AxError
An AxError with kind AxErrorKind::NoMemory.
Sourcepub const NoSuchDevice: AxError
pub const NoSuchDevice: AxError
An AxError with kind AxErrorKind::NoSuchDevice.
Sourcepub const NoSuchProcess: AxError
pub const NoSuchProcess: AxError
An AxError with kind AxErrorKind::NoSuchProcess.
Sourcepub const NotADirectory: AxError
pub const NotADirectory: AxError
An AxError with kind AxErrorKind::NotADirectory.
Sourcepub const NotASocket: AxError
pub const NotASocket: AxError
An AxError with kind AxErrorKind::NotASocket.
Sourcepub const NotATty: AxError
pub const NotATty: AxError
An AxError with kind AxErrorKind::NotATty.
Sourcepub const NotConnected: AxError
pub const NotConnected: AxError
An AxError with kind AxErrorKind::NotConnected.
Sourcepub const NotFound: AxError
pub const NotFound: AxError
An AxError with kind AxErrorKind::NotFound.
Sourcepub const OperationNotPermitted: AxError
pub const OperationNotPermitted: AxError
An AxError with kind AxErrorKind::OperationNotPermitted.
Sourcepub const OperationNotSupported: AxError
pub const OperationNotSupported: AxError
An AxError with kind AxErrorKind::OperationNotSupported.
Sourcepub const OutOfRange: AxError
pub const OutOfRange: AxError
An AxError with kind AxErrorKind::OutOfRange.
Sourcepub const PermissionDenied: AxError
pub const PermissionDenied: AxError
An AxError with kind AxErrorKind::PermissionDenied.
Sourcepub const ReadOnlyFilesystem: AxError
pub const ReadOnlyFilesystem: AxError
An AxError with kind AxErrorKind::ReadOnlyFilesystem.
Sourcepub const ResourceBusy: AxError
pub const ResourceBusy: AxError
An AxError with kind AxErrorKind::ResourceBusy.
Sourcepub const StorageFull: AxError
pub const StorageFull: AxError
An AxError with kind AxErrorKind::StorageFull.
Sourcepub const TimedOut: AxError
pub const TimedOut: AxError
An AxError with kind AxErrorKind::TimedOut.
Sourcepub const TooManyOpenFiles: AxError
pub const TooManyOpenFiles: AxError
An AxError with kind AxErrorKind::TooManyOpenFiles.
Sourcepub const UnexpectedEof: AxError
pub const UnexpectedEof: AxError
An AxError with kind AxErrorKind::UnexpectedEof.
Sourcepub const Unsupported: AxError
pub const Unsupported: AxError
An AxError with kind AxErrorKind::Unsupported.
Sourcepub const WouldBlock: AxError
pub const WouldBlock: AxError
An AxError with kind AxErrorKind::WouldBlock.
Sourcepub const WriteZero: AxError
pub const WriteZero: AxError
An AxError with kind AxErrorKind::WriteZero.