Module strategy

Source
Expand description

Assorted retry strategies including fixed interval and exponential back-off.

Structs§

ExponentialBackoff
A retry strategy driven by exponential back-off.
ExponentialFactorBackoff
A retry strategy driven by exponential factor back-off. Duration is capped at a maximum value of u32::MAX millis = 4294967295 ms ~49 days.
FibonacciBackoff
A retry strategy driven by the fibonacci series.
FixedInterval
A retry strategy driven by a fixed interval.
MaxIntervalIterator
A strategy wrapper with applied max_interval, created by MaxInterval::max_interval function.

Traits§

MaxInterval
Wraps a strategy, applying `max_interval``, after which strategy will stop retrying.