[−][src]Enum sunrise_kernel::error::KernelError
Kernel Error.
Used pretty much everywhere that an error can occur. Holds the reason of the error, and a backtrace of its origin, for debug.
When a KernelError must be propagated to userspace, i.e. a syscall failed, it must be converted to a UserspaceError.
Variants
Fields of NotImplemented
msg: &'static str
backtrace: Backtrace
Fields of InvalidAddress
address: usize
backtrace: Backtrace
Fields of InvalidSize
size: usize
backtrace: Backtrace
Fields of InvalidKernelCaps
kcap: u32
backtrace: Backtrace
Fields of WrongMappingFramesForTy
ty: MemoryType
backtrace: Backtrace
Fields of InvalidMemState
Trait Implementations
impl Debug for KernelError
[src]
impl Display for KernelError
[src]
impl Fail for KernelError
[src]
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
impl From<KernelError> for UserspaceError
[src]
fn from(err: KernelError) -> UserspaceError
[src]
Auto Trait Implementations
impl RefUnwindSafe for KernelError
impl Send for KernelError
impl Sync for KernelError
impl Unpin for KernelError
impl UnwindSafe for KernelError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,