Struct ExponentialBackoff
pub struct ExponentialBackoff<R = HasherRng> { /* private fields */ }
A jittered exponential backoff strategy.
The backoff duration will increase exponentially for every subsequent backoff, up to a maximum duration. A small amount of random jitter is added to each backoff duration, in order to avoid retry spikes.
Trait Implementations
impl<R> Backoff for ExponentialBackoff<R>
where
R: Rng,
type Future = Sleep;fn next_backoff(&mut self) -> Self::Future
impl<R: Clone> Clone for ExponentialBackoff<R>
fn clone(&self) -> Self
impl<R: Debug> Debug for ExponentialBackoff<R>
fn fmt(&self, f: &mut Formatter<'_>) -> Result