Expand description
Contains various backoff strategies.
Strategies are defined as Iterator<Item=Duration>
.
Structs
Creates infinite stream of backoffs that keep the exponential growth, and jitter
between 0 and that amount.
An infinite stream of backoffs that keep the exponential growth from
start
until it
reaches max
.An infinite stream of backoffs that keep half of the exponential growth, and jitter
between 0 and that amount.
Thread local random generator, invokes
rand::thread_rng
.The type returned by
thread_rng
, essentially just a reference to the
PRNG in thread-local memory.Traits
Random generator.
Functions
Creates a infinite stream of given
duration
Creates infinite stream of backoffs that keep half of the exponential growth, and jitter
between 0 and that amount.
Creates infinite stream of backoffs that keep the exponential growth from
start
until it
reaches max
.Creates infinite stream of backoffs that keep the exponential growth, and jitter
between 0 and that amount.