Struct relabuf::ExponentialBackoff [−][src]
pub struct ExponentialBackoff { pub initial_interval: Duration, pub randomization_factor: f64, pub multiplier: f64, pub max_interval: Duration, pub max_elapsed_time: Option<Duration>, }
Fields
initial_interval: Duration
The initial retry interval.
randomization_factor: f64
The randomization factor to use for creating a range around the retry interval.
A randomization factor of 0.5 results in a random period ranging between 50% below and 50% above the retry interval.
multiplier: f64
The value to multiply the current interval with for each retry attempt.
max_interval: Duration
The maximum value of the back off period. Once the retry interval reaches this value it stops increasing.
max_elapsed_time: Option<Duration>
The maximum elapsed time after instantiating
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExponentialBackoff
impl Send for ExponentialBackoff
impl Sync for ExponentialBackoff
impl Unpin for ExponentialBackoff
impl UnwindSafe for ExponentialBackoff