Crate retry_future

Source
Expand description

The main purpose of the crate is to retry Futures which may contain complex scenarios such as not only handling errors but anything that should be retried. This may include retrying 500’s errors from http requests or retrying something like “pseudo” successes from grpc requests.

Re-exports§

pub use error::Error;
pub use error::RetryError;
pub use error::TooManyAttempts;

Modules§

error

Macros§

fail
Return early with RetryPolicy::Fail
retry
Return early with RetryPolicy::Retry

Structs§

ExponentialRetryStrategy
Retry futures exponentially.
InfiniteRetryStrategy
Infinite retry
LinearRetryStrategy
Simple retry strategy that is retrying futures after Duration
RetryFuture
A future which is trying to resolve inner future until it exits successfully or return an error.

Enums§

RetryPolicy
Return type of inner future inside RetryFuture

Traits§

RetryStrategy
Configuration trait for RetryFuture.