pub struct HttpRetryPolicyConfig {
pub max_attempts: u32,
pub base_delay_ms: u64,
pub max_delay_ms: u64,
pub strategy: BackoffStrategy,
pub jitter_ms: u64,
}Expand description
Configuration for a retry policy.
Fields§
§max_attempts: u32§base_delay_ms: u64§max_delay_ms: u64§strategy: BackoffStrategy§jitter_ms: u64Trait Implementations§
Source§impl Clone for HttpRetryPolicyConfig
impl Clone for HttpRetryPolicyConfig
Source§fn clone(&self) -> HttpRetryPolicyConfig
fn clone(&self) -> HttpRetryPolicyConfig
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 HttpRetryPolicyConfig
impl Debug for HttpRetryPolicyConfig
Auto Trait Implementations§
impl Freeze for HttpRetryPolicyConfig
impl RefUnwindSafe for HttpRetryPolicyConfig
impl Send for HttpRetryPolicyConfig
impl Sync for HttpRetryPolicyConfig
impl Unpin for HttpRetryPolicyConfig
impl UnsafeUnpin for HttpRetryPolicyConfig
impl UnwindSafe for HttpRetryPolicyConfig
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