Skip to main content

Module backoff

Module backoff 

Source
Available on crate feature retry only.
Expand description

This module contains generic backoff utilities to be used with the retry layer.

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
A jittered exponential backoff strategy.
ExponentialBackoffMaker
A maker type for ExponentialBackoff.
InvalidBackoff
Backoff validation error.

Traits§

Backoff
A backoff trait where a single mutable reference represents a single backoff session. Implementors must also implement Clone which will reset the backoff back to the default state for the next session.
MakeBackoff
Trait used to construct Backoff trait implementors.