[][src]Enum kernel::procs::FaultResponse

pub enum FaultResponse {

The reaction the kernel should take when an app encounters a fault.

When an exception occurs during an app's execution (a common example is an app trying to access memory outside of its allowed regions) the system will trap back to the kernel, and the kernel has to decide what to do with the app at that point.



Generate a panic!() call and crash the entire system. This is useful for debugging applications as the error is displayed immediately after it occurs.


Attempt to cleanup and restart the app which caused the fault. This resets the app's memory to how it was when the app was started and schedules the app to run again from its init function.


Stop the app by no longer scheduling it to run.

Trait Implementations

impl Debug for FaultResponse[src]

impl PartialEq<FaultResponse> for FaultResponse[src]

impl Eq for FaultResponse[src]

impl Copy for FaultResponse[src]

impl Clone for FaultResponse[src]

Auto Trait Implementations

impl Unpin for FaultResponse

impl Send for FaultResponse

impl Sync for FaultResponse

Blanket Implementations

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized