pub struct AllDownPolicy {
pub max_retries: u32,
pub base: Duration,
pub max: Duration,
}Expand description
Bounded, jittered all-down backoff. A daemon re-arms the sweep up to
max_retries times, sleeping base × 2^n capped at max with per-attempt
jitter, before surfacing the terminal all-down. The bound matters: without
max_retries a permanently misconfigured endpoint would keep a daemon alive
and silent forever instead of failing visibly.
Fields§
§max_retries: u32§base: Duration§max: DurationTrait Implementations§
Source§impl Clone for AllDownPolicy
impl Clone for AllDownPolicy
Source§fn clone(&self) -> AllDownPolicy
fn clone(&self) -> AllDownPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AllDownPolicy
Source§impl Debug for AllDownPolicy
impl Debug for AllDownPolicy
Source§impl Default for AllDownPolicy
impl Default for AllDownPolicy
Source§fn default() -> AllDownPolicy
fn default() -> AllDownPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AllDownPolicy
impl RefUnwindSafe for AllDownPolicy
impl Send for AllDownPolicy
impl Sync for AllDownPolicy
impl Unpin for AllDownPolicy
impl UnsafeUnpin for AllDownPolicy
impl UnwindSafe for AllDownPolicy
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