pub struct KernelError { /* private fields */ }
Expand description
Type that represents an error understood by the kernel.
Implementations§
Source§impl KernelError
impl KernelError
Sourcepub fn from_errno(errno: Errno) -> KernelError
pub fn from_errno(errno: Errno) -> KernelError
Constructs a new error given a raw errno code.
Sourcepub fn errno_as_i32(&self) -> i32
pub fn errno_as_i32(&self) -> i32
Obtains the errno code contained in this error as an integer.
Trait Implementations§
Source§impl Debug for KernelError
impl Debug for KernelError
Source§impl Display for KernelError
impl Display for KernelError
Source§impl Fail for KernelError
impl Fail for KernelError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<Error> for KernelError
impl From<Error> for KernelError
Auto Trait Implementations§
impl Freeze for KernelError
impl RefUnwindSafe for KernelError
impl Send for KernelError
impl Sync for KernelError
impl Unpin for KernelError
impl UnwindSafe for KernelError
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