pub struct ThresholdRestartThenPanicFaultPolicy { /* private fields */ }
Expand description
Implementation of ProcessFaultPolicy
that uses a threshold to decide
whether to restart a process when it faults.
If the process has been restarted more times than the threshold then the board will panic.
Implementations§
Source§impl ThresholdRestartThenPanicFaultPolicy
impl ThresholdRestartThenPanicFaultPolicy
pub const fn new(threshold: usize) -> ThresholdRestartThenPanicFaultPolicy
Trait Implementations§
Source§impl ProcessFaultPolicy for ThresholdRestartThenPanicFaultPolicy
impl ProcessFaultPolicy for ThresholdRestartThenPanicFaultPolicy
Source§fn 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.Auto Trait Implementations§
impl Freeze for ThresholdRestartThenPanicFaultPolicy
impl RefUnwindSafe for ThresholdRestartThenPanicFaultPolicy
impl Send for ThresholdRestartThenPanicFaultPolicy
impl Sync for ThresholdRestartThenPanicFaultPolicy
impl Unpin for ThresholdRestartThenPanicFaultPolicy
impl UnwindSafe for ThresholdRestartThenPanicFaultPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more