pub struct RetryConfig {
pub max_retries_429: u32,
pub max_retries_5xx: u32,
pub base_delay: Duration,
pub circuit_breaker: Option<CircuitBreaker>,
}Expand description
Configuration for the retry logic in execute_with_retry.
Fields§
§max_retries_429: u32§max_retries_5xx: u32§base_delay: Duration§circuit_breaker: Option<CircuitBreaker>Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RetryConfig
impl RefUnwindSafe for RetryConfig
impl Send for RetryConfig
impl Sync for RetryConfig
impl Unpin for RetryConfig
impl UnsafeUnpin for RetryConfig
impl UnwindSafe for RetryConfig
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