pub struct ThresholdRestartFaultPolicy { /* 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 process will be stopped and no longer scheduled.
Implementations§
Source§impl ThresholdRestartFaultPolicy
impl ThresholdRestartFaultPolicy
pub const fn new(threshold: usize) -> ThresholdRestartFaultPolicy
Trait Implementations§
Source§impl ProcessFaultPolicy for ThresholdRestartFaultPolicy
impl ProcessFaultPolicy for ThresholdRestartFaultPolicy
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 ThresholdRestartFaultPolicy
impl RefUnwindSafe for ThresholdRestartFaultPolicy
impl Send for ThresholdRestartFaultPolicy
impl Sync for ThresholdRestartFaultPolicy
impl Unpin for ThresholdRestartFaultPolicy
impl UnwindSafe for ThresholdRestartFaultPolicy
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