Struct ExponentialBackoff

struct ExponentialBackoff<R = crate::util::rng::HasherRng> { ... }

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

impl<R> Backoff for ExponentialBackoff<R>

fn next_backoff(self: &mut Self) -> <Self as >::Future

impl<R> Freeze for ExponentialBackoff<R>

impl<R> RefUnwindSafe for ExponentialBackoff<R>

impl<R> Send for ExponentialBackoff<R>

impl<R> Sync for ExponentialBackoff<R>

impl<R> Unpin for ExponentialBackoff<R>

impl<R> UnwindSafe for ExponentialBackoff<R>

impl<R: $crate::clone::Clone> Clone for ExponentialBackoff<R>

fn clone(self: &Self) -> ExponentialBackoff<R>

impl<R: $crate::fmt::Debug> Debug for ExponentialBackoff<R>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl<T> Any for ExponentialBackoff<R>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ExponentialBackoff<R>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ExponentialBackoff<R>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for ExponentialBackoff<R>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for ExponentialBackoff<R>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for ExponentialBackoff<R>

impl<T> ToOwned for ExponentialBackoff<R>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for ExponentialBackoff<R>

impl<T, U> Into for ExponentialBackoff<R>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for ExponentialBackoff<R>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ExponentialBackoff<R>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>