pub struct BackoffConfig {
pub base_ms: u64,
pub cap_ms: u64,
pub max_retries: u32,
pub jitter_max_ms: u64,
}Expand description
Configuration for the exponential backoff retry loop.
Fields§
§base_ms: u64Initial delay in milliseconds. Default: 1000.
cap_ms: u64Maximum delay cap in milliseconds. Default: 60_000.
max_retries: u32Maximum number of retry attempts (not counting the first attempt). Default: 5.
jitter_max_ms: u64Maximum random jitter in milliseconds added to each delay. Default: 1000.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackoffConfig
impl RefUnwindSafe for BackoffConfig
impl Send for BackoffConfig
impl Sync for BackoffConfig
impl Unpin for BackoffConfig
impl UnsafeUnpin for BackoffConfig
impl UnwindSafe for BackoffConfig
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