pub struct RetryPolicyParameters {
pub base_delay_ms: u64,
pub max_delay_ms: u64,
pub max_attempts: u32,
}Expand description
The retry family’s parameters of an ExecutorPolicy.
These are the numbers crate::durable::classify_retry decides with:
the backoff schedule draws from [0, base_delay_ms * 2^(attempt-1)]
capped at max_delay_ms, and a retryable failure dead-letters once
attempt >= max_attempts.
Fields§
§base_delay_ms: u64Base of the exponential backoff schedule, in milliseconds.
max_delay_ms: u64Cap of the backoff schedule, in milliseconds.
max_attempts: u32Attempt budget: the number of attempts counting the initial one.
0 means no retries at all — every retryable failure dead-letters.
Trait Implementations§
Source§impl Clone for RetryPolicyParameters
impl Clone for RetryPolicyParameters
Source§fn clone(&self) -> RetryPolicyParameters
fn clone(&self) -> RetryPolicyParameters
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 moreimpl Copy for RetryPolicyParameters
Source§impl Debug for RetryPolicyParameters
impl Debug for RetryPolicyParameters
Source§impl<'de> Deserialize<'de> for RetryPolicyParameters
impl<'de> Deserialize<'de> for RetryPolicyParameters
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 RetryPolicyParameters
Source§impl PartialEq for RetryPolicyParameters
impl PartialEq for RetryPolicyParameters
Source§impl Serialize for RetryPolicyParameters
impl Serialize for RetryPolicyParameters
impl StructuralPartialEq for RetryPolicyParameters
Auto Trait Implementations§
impl Freeze for RetryPolicyParameters
impl RefUnwindSafe for RetryPolicyParameters
impl Send for RetryPolicyParameters
impl Sync for RetryPolicyParameters
impl Unpin for RetryPolicyParameters
impl UnsafeUnpin for RetryPolicyParameters
impl UnwindSafe for RetryPolicyParameters
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