Trait kernel::process::ProcessFaultPolicy[][src]

pub trait ProcessFaultPolicy {
    fn action(&self, process: &dyn Process) -> FaultAction;
Expand description

Generic trait for implementing a policy on what to do when a process faults.

Implementations can use the Process reference to decide which action to take. Implementations can also use debug!() to print messages if desired.

Required methods

Decide which action the kernel should take in response to process faulting.