Skip to main content

ProcessFaultPolicy

Trait ProcessFaultPolicy 

Source
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§

Source

fn action(&self, process: &dyn Process) -> FaultAction

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§