pub struct ExponentialBackoff<F, R = HasherRng> { /* private fields */ }Expand description
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.
Implementations§
Source§impl<F, R> ExponentialBackoff<F, R>
impl<F, R> ExponentialBackoff<F, R>
Trait Implementations§
Source§impl<F, R> Backoff for ExponentialBackoff<F, R>
impl<F, R> Backoff for ExponentialBackoff<F, R>
Source§impl<F, R> Clone for ExponentialBackoff<F, R>
impl<F, R> Clone for ExponentialBackoff<F, R>
Auto Trait Implementations§
impl<F, R = HasherRng> !Freeze for ExponentialBackoff<F, R>
impl<F, R = HasherRng> !RefUnwindSafe for ExponentialBackoff<F, R>
impl<F, R> Send for ExponentialBackoff<F, R>
impl<F, R> Sync for ExponentialBackoff<F, R>
impl<F, R> Unpin for ExponentialBackoff<F, R>
impl<F, R> UnwindSafe for ExponentialBackoff<F, R>where
F: UnwindSafe,
R: UnwindSafe,
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