pub struct ExponentialBackoffBuilder<C> { /* private fields */ }
Expand description

Builder for ExponentialBackoff.

TODO: Example

Implementations§

The initial retry interval.

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.

The value to multiply the current interval with for each retry attempt.

The maximum value of the back off period. Once the retry interval reaches this value it stops increasing.

The maximum elapsed time after instantiating ExponentialBackfff or calling reset after which next_backoff returns None.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.