pub enum BackoffStrategy {
Exponential(u64),
Cliff(u64),
}
Variants§
Exponential(u64)
The wrapped integer is the base b of the exponential b^n where n is the number of events. Each event will trigger a delay b times as large as the prior delay.
Cliff(u64)
Cliff means you wait exactly the minimum delay for some number of events, then you suddenly switch to waiting the maximum interval for each event. The wrapped integer is the number of times to delay with the minimum interval before switching to the max interval.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackoffStrategy
impl RefUnwindSafe for BackoffStrategy
impl Send for BackoffStrategy
impl Sync for BackoffStrategy
impl Unpin for BackoffStrategy
impl UnwindSafe for BackoffStrategy
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