pub enum Jitter {
None,
Full,
Proportional {
ratio: f64,
},
}Expand description
Optional randomization of each operation’s retry delays.
Variants§
None
Use the exact backoff delay.
Full
Select a delay uniformly between zero and the backoff delay.
Proportional
Scale the backoff by a uniform factor between 1-ratio and 1+ratio.
Exponential schedules still apply their configured maximum.
Trait Implementations§
impl Copy for Jitter
impl StructuralPartialEq for Jitter
Auto Trait Implementations§
impl Forget for Jitter
impl Freeze for Jitter
impl Move for Jitter
impl RefUnwindSafe for Jitter
impl Send for Jitter
impl Sync for Jitter
impl Unpin for Jitter
impl UnsafeUnpin for Jitter
impl UnwindSafe for Jitter
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