pub struct ProviderRetryPolicy {
pub enabled: bool,
pub max_attempts: u32,
pub base_delay_ms: u64,
pub max_delay_ms: u64,
pub jitter_ms: u64,
pub retry_after_cap_ms: Option<u64>,
pub throttle_wait_budget_ms: u64,
}Fields§
§enabled: bool§max_attempts: u32§base_delay_ms: u64§max_delay_ms: u64§jitter_ms: u64§retry_after_cap_ms: Option<u64>§throttle_wait_budget_ms: u64Cumulative time ProviderHandle::complete may spend honoring
provider throttle waits — a retryable ProviderFailureKind::Quota
failure carrying Retry-After — without consuming retry attempts.
Each deferred wait charges what it actually waits, with a one-second
floor per deference, so the courtesy is bounded in count as well as
time. Once the budget is spent, throttled failures consume attempts
like any other retryable failure. 0 disables the deference entirely.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderRetryPolicy
impl Clone for ProviderRetryPolicy
Source§fn clone(&self) -> ProviderRetryPolicy
fn clone(&self) -> ProviderRetryPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProviderRetryPolicy
impl Debug for ProviderRetryPolicy
Source§impl Default for ProviderRetryPolicy
impl Default for ProviderRetryPolicy
Source§impl<'de> Deserialize<'de> for ProviderRetryPolicy
impl<'de> Deserialize<'de> for ProviderRetryPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProviderRetryPolicy
Source§impl PartialEq for ProviderRetryPolicy
impl PartialEq for ProviderRetryPolicy
Source§fn eq(&self, other: &ProviderRetryPolicy) -> bool
fn eq(&self, other: &ProviderRetryPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderRetryPolicy
impl Serialize for ProviderRetryPolicy
impl StructuralPartialEq for ProviderRetryPolicy
Auto Trait Implementations§
impl Freeze for ProviderRetryPolicy
impl RefUnwindSafe for ProviderRetryPolicy
impl Send for ProviderRetryPolicy
impl Sync for ProviderRetryPolicy
impl Unpin for ProviderRetryPolicy
impl UnsafeUnpin for ProviderRetryPolicy
impl UnwindSafe for ProviderRetryPolicy
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