Expand description
Retry handling and token bucket.
This code defines when and how failed requests should be retried. It also defines the behavior used to limit the rate that requests are sent.
Modules§
- classifiers
- Classifiers for determining if a retry is necessary and related code.
Structs§
- Always
Retry - A retry classifier for testing purposes. This classifier always returns
Some(RetryAction::Error(ErrorKind))
whereErrorKind
is the value provided when creating this classifier. - Request
Attempts - A type to track the number of requests sent by the orchestrator for a given operation.
- Shared
Retry Strategy - A shared retry strategy.
Enums§
- Error
Kind - Type of error that occurred when making a request.
- Should
Attempt - An answer to the question “should I make a request attempt?”
Traits§
- Retry
Strategy - Decider for whether or not to attempt a request, and when.