Struct azure_core::FixedRetryOptions
source · pub struct FixedRetryOptions {
pub delay: Duration,
pub max_retries: u32,
pub max_total_elapsed: Duration,
}
Expand description
Options for how a fixed retry strategy should behave.
Example
Configuring retry to be fixed with 10 retries max.
RetryOptions::fixed(
FixedRetryOptions::default()
.max_retries(10u32)
);
Fields§
§delay: Duration
The delay between retry attempts.
The default is 200 milliseconds.
max_retries: u32
The maximum number of retry attempts before giving up.
The default is 8.
max_total_elapsed: Duration
The maximum permissible elapsed time since starting to retry.
The default is 1 minute.
Implementations§
Trait Implementations§
source§impl Clone for FixedRetryOptions
impl Clone for FixedRetryOptions
source§fn clone(&self) -> FixedRetryOptions
fn clone(&self) -> FixedRetryOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more