pub struct RetryStrategyConfig {
pub strategy: RetryStrategyType,
pub max_attempts: u32,
pub base_delay: Duration,
pub max_delay: Duration,
pub jitter: f64,
}Expand description
Configuration for a retry strategy.
Fields§
§strategy: RetryStrategyTypeStrategy type for calculating delay between retries.
max_attempts: u32Maximum number of retry attempts.
base_delay: DurationBase delay for backoff calculations.
max_delay: DurationMaximum delay cap for backoff.
jitter: f64Jitter factor for randomized delays (0.0 = no jitter, 1.0 = full jitter).
Trait Implementations§
Source§impl Clone for RetryStrategyConfig
impl Clone for RetryStrategyConfig
Source§fn clone(&self) -> RetryStrategyConfig
fn clone(&self) -> RetryStrategyConfig
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 RetryStrategyConfig
impl Debug for RetryStrategyConfig
Source§impl Default for RetryStrategyConfig
impl Default for RetryStrategyConfig
Source§impl<'de> Deserialize<'de> for RetryStrategyConfig
impl<'de> Deserialize<'de> for RetryStrategyConfig
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 RetryStrategyConfig
impl RefUnwindSafe for RetryStrategyConfig
impl Send for RetryStrategyConfig
impl Sync for RetryStrategyConfig
impl Unpin for RetryStrategyConfig
impl UnsafeUnpin for RetryStrategyConfig
impl UnwindSafe for RetryStrategyConfig
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