pub struct Error(_);
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
sourceimpl From<AllocError> for Error
impl From<AllocError> for Error
sourcefn from(_: AllocError) -> Error
fn from(_: AllocError) -> Error
Converts to this type from the input type.
sourceimpl From<CStrConvertError> for Error
impl From<CStrConvertError> for Error
sourcefn from(_: CStrConvertError) -> Error
fn from(_: CStrConvertError) -> Error
Converts to this type from the input type.
sourceimpl From<Infallible> for Error
impl From<Infallible> for Error
sourcefn from(e: Infallible) -> Error
fn from(e: Infallible) -> Error
Converts to this type from the input type.
sourceimpl From<LayoutError> for Error
impl From<LayoutError> for Error
sourcefn from(_: LayoutError) -> Error
fn from(_: LayoutError) -> Error
Converts to this type from the input type.
sourceimpl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
sourcefn from(_: TryFromIntError) -> Error
fn from(_: TryFromIntError) -> Error
Converts to this type from the input type.
sourceimpl From<TryReserveError> for Error
impl From<TryReserveError> for Error
sourcefn from(_: TryReserveError) -> Error
fn from(_: TryReserveError) -> Error
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more