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§
Macros§
- fail
- Return early with RetryPolicy::Fail
- retry
- Return early with RetryPolicy::Retry
Structs§
- Exponential
Retry Strategy - Retry futures exponentially.
- Infinite
Retry Strategy - Infinite retry
- Linear
Retry Strategy - Simple retry strategy that is retrying futures after Duration
- Retry
Future - A future which is trying to resolve inner future until it exits successfully or return an error.
Enums§
- Retry
Policy - Return type of inner future inside RetryFuture
Traits§
- Retry
Strategy - Configuration trait for RetryFuture.