pub struct RetryOptions { /* private fields */ }Available on crate feature
export-azure only.Expand description
Specify how retries should behave.
Note that not all requests can be retried. These options will only be used when a retry is attempted.
The default is an exponential retry policy using the default ExponentialRetryOptions.
Implementationsยง
Sourceยงimpl RetryOptions
impl RetryOptions
Sourcepub fn exponential(options: ExponentialRetryOptions) -> RetryOptions
pub fn exponential(options: ExponentialRetryOptions) -> RetryOptions
A retry strategy where attempts happen at intervals that get exponentially longer with each retry.
Sourcepub fn fixed(options: FixedRetryOptions) -> RetryOptions
pub fn fixed(options: FixedRetryOptions) -> RetryOptions
A retry strategy where attempts happen at fixed intervals; each delay is a consistent duration.
Sourcepub fn custom<T>(policy: Arc<T>) -> RetryOptionswhere
T: RetryPolicy + 'static,
pub fn custom<T>(policy: Arc<T>) -> RetryOptionswhere
T: RetryPolicy + 'static,
A custom retry using the supplied retry policy.
Sourcepub fn none() -> RetryOptions
pub fn none() -> RetryOptions
No retries will be attempted.
Trait Implementationsยง
Sourceยงimpl Clone for RetryOptions
impl Clone for RetryOptions
Sourceยงfn clone(&self) -> RetryOptions
fn clone(&self) -> RetryOptions
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 RetryOptions
impl Debug for RetryOptions
Sourceยงimpl Default for RetryOptions
impl Default for RetryOptions
Sourceยงfn default() -> RetryOptions
fn default() -> RetryOptions
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for RetryOptions
impl !RefUnwindSafe for RetryOptions
impl Send for RetryOptions
impl Sync for RetryOptions
impl Unpin for RetryOptions
impl UnsafeUnpin for RetryOptions
impl !UnwindSafe for RetryOptions
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