pub struct ConsecutiveFailures {
pub cap: u32,
pub cooldown: Duration,
}Expand description
Cap on restarts granted in a row without the replacement ever reporting ready.
Fields§
§cap: u32Restarts in a row (no RestartTracker::ready between them) after which the cap applies.
cooldown: DurationWhat the cap does: the next restart waits this long instead of the exponential backoff and a
new consecutive count starts. Duration::ZERO ends the run (RestartOutcome::Exhausted).
Trait Implementations§
Source§impl Clone for ConsecutiveFailures
impl Clone for ConsecutiveFailures
impl Copy for ConsecutiveFailures
Source§impl Debug for ConsecutiveFailures
impl Debug for ConsecutiveFailures
impl Eq for ConsecutiveFailures
Source§impl PartialEq for ConsecutiveFailures
impl PartialEq for ConsecutiveFailures
impl StructuralPartialEq for ConsecutiveFailures
Auto Trait Implementations§
impl Freeze for ConsecutiveFailures
impl RefUnwindSafe for ConsecutiveFailures
impl Send for ConsecutiveFailures
impl Sync for ConsecutiveFailures
impl Unpin for ConsecutiveFailures
impl UnsafeUnpin for ConsecutiveFailures
impl UnwindSafe for ConsecutiveFailures
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