Struct aws_sdk_dynamodb::middleware::RetryConfig [−][src]
pub struct RetryConfig { /* fields omitted */ }
Expand description
Retry Policy Configuration
Without specific use cases, users should generally rely on the default values set by [Config::default]
(Config::default).`
Currently these fields are private and no setters provided. As needed, this configuration will become user-modifiable in the future..
Implementations
Override b
in the exponential backoff computation
By default, base
is a randomly generated value between 0 and 1. In tests, it can
be helpful to override this:
use aws_smithy_client::retry::Config;
let conf = Config::default().with_base(||1_f64);
Override the maximum number of attempts
max_attempts
must be set to a value of at least 1
(indicating that retries are disabled).
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more