pub struct Error(/* private fields */);
Expand description
Generic integer kernel error.
The kernel defines a set of integer generic error codes based on C and POSIX ones. These codes may have a more specific meaning in some contexts.
Invariants
The value is a valid errno
(i.e. >= -MAX_ERRNO && < 0
).
Implementations§
Trait Implementations§
source§impl From<AllocError> for Error
impl From<AllocError> for Error
source§fn from(_: AllocError) -> Error
fn from(_: AllocError) -> Error
Converts to this type from the input type.
source§impl From<CStrConvertError> for Error
impl From<CStrConvertError> for Error
source§fn from(_: CStrConvertError) -> Error
fn from(_: CStrConvertError) -> Error
Converts to this type from the input type.
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(e: Infallible) -> Error
fn from(e: Infallible) -> Error
Converts to this type from the input type.
source§impl From<LayoutError> for Error
impl From<LayoutError> for Error
source§fn from(_: LayoutError) -> Error
fn from(_: LayoutError) -> Error
Converts to this type from the input type.
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(_: TryFromIntError) -> Error
fn from(_: TryFromIntError) -> Error
Converts to this type from the input type.
source§impl From<TryReserveError> for Error
impl From<TryReserveError> for Error
source§fn from(_: TryReserveError) -> Error
fn from(_: TryReserveError) -> Error
Converts to this type from the input type.
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Mutably borrows from an owned value. Read more