pub struct BackoffConfig { /* private fields */ }Available on crate feature
sleep only.Expand description
Backoff configuration for strategies
Implementations§
Source§impl BackoffConfig
impl BackoffConfig
Sourcepub fn with_multiplier(self, multiplier: f64) -> Self
pub fn with_multiplier(self, multiplier: f64) -> Self
Set the multiplier for exponential backoff
Sourcepub fn with_jitter(self, jitter_factor: f64) -> Self
pub fn with_jitter(self, jitter_factor: f64) -> Self
Set the jitter factor (0.0 to 1.0) for randomizing delays
Trait Implementations§
Source§impl Clone for BackoffConfig
impl Clone for BackoffConfig
Source§impl Debug for BackoffConfig
impl Debug for BackoffConfig
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