[][src]Trait kernel::procs::ProcessRestartPolicy

pub trait ProcessRestartPolicy {
    fn should_restart(&self, process: &dyn ProcessType) -> bool;

Generic trait for implementing process restart policies.

This policy allows a board to specify how the kernel should decide whether to restart an app after it crashes.

Required methods

fn should_restart(&self, process: &dyn ProcessType) -> bool

Decide whether to restart the process or not.

Returns true if the process should be restarted, false otherwise.

Loading content...


impl ProcessRestartPolicy for AlwaysRestart[src]

impl ProcessRestartPolicy for ThresholdRestart[src]

impl ProcessRestartPolicy for ThresholdRestartThenPanic[src]

Loading content...