pub struct RetryPolicyConfig {
pub strategy: String,
pub max_retries: u32,
pub initial_delay_ms: u64,
pub fixed_delay_ms: Option<u64>,
}Expand description
Retry policy configuration
Fields§
§strategy: StringRetry strategy: “exponential”, “fixed”, or “none”
max_retries: u32Maximum number of retries
initial_delay_ms: u64Initial delay in milliseconds (for exponential)
fixed_delay_ms: Option<u64>Fixed delay in milliseconds (for fixed strategy)
Trait Implementations§
Source§impl Clone for RetryPolicyConfig
impl Clone for RetryPolicyConfig
Source§fn clone(&self) -> RetryPolicyConfig
fn clone(&self) -> RetryPolicyConfig
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 RetryPolicyConfig
impl Debug for RetryPolicyConfig
Source§impl<'de> Deserialize<'de> for RetryPolicyConfig
impl<'de> Deserialize<'de> for RetryPolicyConfig
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
Auto Trait Implementations§
impl Freeze for RetryPolicyConfig
impl RefUnwindSafe for RetryPolicyConfig
impl Send for RetryPolicyConfig
impl Sync for RetryPolicyConfig
impl Unpin for RetryPolicyConfig
impl UnsafeUnpin for RetryPolicyConfig
impl UnwindSafe for RetryPolicyConfig
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