[][src]Enum sunrise_kernel::error::KernelError

pub enum KernelError {
    NotImplemented {
        msg: &'static str,
        backtrace: Backtrace,
    },
    PhysicalMemoryExhaustion {
        backtrace: Backtrace,
    },
    VirtualMemoryExhaustion {
        backtrace: Backtrace,
    },
    InvalidAddress {
        address: usize,
        backtrace: Backtrace,
    },
    InvalidSize {
        size: usize,
        backtrace: Backtrace,
    },
    ProcessKilled {
        backtrace: Backtrace,
    },
    InvalidState {
        backtrace: Backtrace,
    },
    InvalidCombination {
        backtrace: Backtrace,
    },
    ExceedingMaximum {
        value: u64,
        maximum: u64,
        backtrace: Backtrace,
    },
    InvalidKernelCaps {
        kcap: u32,
        backtrace: Backtrace,
    },
    IpcError {
        backtrace: Backtrace,
    },
    WrongMappingFramesForTy {
        ty: MemoryType,
        backtrace: Backtrace,
    },
    InvalidMemState {
        address: VirtualAddress,
        ty: MemoryType,
        backtrace: Backtrace,
    },
    ReservedValue {
        backtrace: Backtrace,
    },
}

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

NotImplemented

Fields of NotImplemented

msg: &'static strbacktrace: Backtrace
PhysicalMemoryExhaustion

Fields of PhysicalMemoryExhaustion

backtrace: Backtrace
VirtualMemoryExhaustion

Fields of VirtualMemoryExhaustion

backtrace: Backtrace
InvalidAddress

Fields of InvalidAddress

address: usizebacktrace: Backtrace
InvalidSize

Fields of InvalidSize

size: usizebacktrace: Backtrace
ProcessKilled

Fields of ProcessKilled

backtrace: Backtrace
InvalidState

Fields of InvalidState

backtrace: Backtrace
InvalidCombination

Fields of InvalidCombination

backtrace: Backtrace
ExceedingMaximum

Fields of ExceedingMaximum

value: u64maximum: u64backtrace: Backtrace
InvalidKernelCaps

Fields of InvalidKernelCaps

kcap: u32backtrace: Backtrace
IpcError

Fields of IpcError

backtrace: Backtrace
WrongMappingFramesForTy

Fields of WrongMappingFramesForTy

ty: MemoryTypebacktrace: Backtrace
InvalidMemState

Fields of InvalidMemState

address: VirtualAddressty: MemoryTypebacktrace: Backtrace
ReservedValue

Fields of ReservedValue

backtrace: Backtrace

Trait Implementations

impl Debug for KernelError[src]

impl Display for KernelError[src]

impl Fail for KernelError[src]

impl From<KernelError> for 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]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.