Module tower_async::util::backoff
source · Available on crate feature
util
only.Expand description
This module contains generic backoff utilities to be used with the retry and limit layers.
The Backoff
trait is a generic way to represent backoffs that can use
any timer type.
ExponentialBackoffMaker
implements the maker type for
ExponentialBackoff
which implements the Backoff
trait and provides
a batteries included exponential backoff and jitter strategy.
Structs
- ExponentialBackoff
util-tokio
A jittered exponential backoff strategy. - ExponentialBackoffMaker
util-tokio
A maker type forExponentialBackoff
.