pub trait ProcessFaultPolicy {
// Required method
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§
Sourcefn action(&self, process: &dyn Process) -> FaultAction
fn action(&self, process: &dyn Process) -> FaultAction
Decide which action the kernel should take in response to process
faulting.