#[non_exhaustive]pub struct RetryConfig {
pub discover_timeout: Duration,
pub initial_request_timeout: Duration,
pub request_retries: u16,
pub min_renew_timeout: Duration,
pub max_renew_timeout: Duration,
}
Expand description
Timeout and retry configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.discover_timeout: Duration
§initial_request_timeout: Duration
The REQUEST timeout doubles every 2 tries.
request_retries: u16
§min_renew_timeout: Duration
§max_renew_timeout: Duration
An upper bound on how long to wait between retrying a renew or rebind.
Set this to Duration::MAX
if you don’t want to impose an upper bound.
Trait Implementations§
Source§impl Clone for RetryConfig
impl Clone for RetryConfig
Source§fn clone(&self) -> RetryConfig
fn clone(&self) -> RetryConfig
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 moreSource§impl Debug for RetryConfig
impl Debug for RetryConfig
Source§impl Default for RetryConfig
impl Default for RetryConfig
Source§impl PartialEq for RetryConfig
impl PartialEq for RetryConfig
impl Copy for RetryConfig
impl Eq for RetryConfig
impl StructuralPartialEq for RetryConfig
Auto Trait Implementations§
impl Freeze for RetryConfig
impl RefUnwindSafe for RetryConfig
impl Send for RetryConfig
impl Sync for RetryConfig
impl Unpin for RetryConfig
impl UnwindSafe for RetryConfig
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