pub struct AxError(/* 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 NoSuchDeviceOrAddress: AxError
pub const NoSuchDeviceOrAddress: AxError
An AxError with kind AxErrorKind::NoSuchDeviceOrAddress.
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 DestAddrRequired: AxError
pub const DestAddrRequired: AxError
An AxError with kind AxErrorKind::DestAddrRequired.
Sourcepub const MessageTooLong: AxError
pub const MessageTooLong: AxError
An AxError with kind AxErrorKind::MessageTooLong.
Sourcepub const WriteZero: AxError
pub const WriteZero: AxError
An AxError with kind AxErrorKind::WriteZero.
Trait Implementations§
impl Copy for AxError
impl Eq for AxError
Source§impl From<AllocError> for AxError
impl From<AllocError> for AxError
Source§fn from(value: AllocError) -> AxError
fn from(value: AllocError) -> AxError
Source§impl<W> From<IntoInnerError<W>> for AxError
impl<W> From<IntoInnerError<W>> for AxError
Source§fn from(iie: IntoInnerError<W>) -> AxError
fn from(iie: IntoInnerError<W>) -> AxError
Source§impl From<LinuxError> for AxError
impl From<LinuxError> for AxError
Source§fn from(e: LinuxError) -> AxError
fn from(e: LinuxError) -> AxError
Source§impl Ord for AxError
impl Ord for AxError
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for AxError
impl PartialOrd for AxError
impl StructuralPartialEq for AxError
Auto Trait Implementations§
impl Freeze for AxError
impl RefUnwindSafe for AxError
impl Send for AxError
impl Sync for AxError
impl Unpin for AxError
impl UnsafeUnpin for AxError
impl UnwindSafe for AxError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DmaPod for Twhere
T: Copy,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.