pub struct FixedRetryOptions {
pub delay: Duration,
pub max_retries: u32,
pub max_total_elapsed: Duration,
}Available on crate feature
export-azure only.Expand description
Options for how a fixed retry strategy should behave.
ยงExample
Configuring retry to be fixed with 10 retries max.
RetryOptions::fixed(
FixedRetryOptions {
max_retries: 10u32,
..Default::default()
}
);Fieldsยง
ยงdelay: DurationThe delay between retry attempts.
The default is 200 milliseconds.
max_retries: u32The maximum number of retry attempts before giving up.
The default is 8.
max_total_elapsed: DurationThe maximum permissible elapsed time since starting to retry.
The default is 1 minute.
Trait Implementationsยง
Sourceยงimpl Clone for FixedRetryOptions
impl Clone for FixedRetryOptions
Sourceยงfn clone(&self) -> FixedRetryOptions
fn clone(&self) -> FixedRetryOptions
Returns a duplicate 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 moreSourceยงimpl Debug for FixedRetryOptions
impl Debug for FixedRetryOptions
Sourceยงimpl Default for FixedRetryOptions
impl Default for FixedRetryOptions
Sourceยงfn default() -> FixedRetryOptions
fn default() -> FixedRetryOptions
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for FixedRetryOptions
impl RefUnwindSafe for FixedRetryOptions
impl Send for FixedRetryOptions
impl Sync for FixedRetryOptions
impl Unpin for FixedRetryOptions
impl UnsafeUnpin for FixedRetryOptions
impl UnwindSafe for FixedRetryOptions
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more