Module aws_smithy_runtime_api::client::retries
source · 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.
Structs
- A retry classifier for testing purposes. This classifier always returns
Some(RetryReason::Error(ErrorKind))whereErrorKindis the value provided when creating this classifier. - A type to track the number of requests sent by the orchestrator for a given operation.
- Classifies an error into a
RetryReason. - A shared retry strategy.
Enums
- Type of error that occurred when making a request.
- Classification result from
ClassifyRetry. - An answer to the question “should I make a request attempt?”
Traits
- Classifies what kind of retry is needed for a given an
InterceptorContext. - Decider for whether or not to attempt a request, and when.