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.
panic!() call and crash the entire system. This is useful
for debugging applications as the error is displayed immediately after
Restart(&'static dyn ProcessRestartPolicy)
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.
The provided restart policy is used to determine whether to reset the app, and can be specified on a per-app basis.
Stop the app by no longer scheduling it to run.
impl Clone for FaultResponse[src]
impl Copy for FaultResponse[src]
Auto Trait Implementations
type Error = Infallible
The type returned in the event of a conversion error.