pub enum Backoff {
None,
Static(Duration),
Incremental {
min: Duration,
max: Duration,
step: Duration,
},
}Expand description
Variants§
None
Restart immediately with no delay.
Static(Duration)
Wait a fixed duration between restarts.
Incremental
Linearly increase delay from min to max by step per restart.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backoff
impl RefUnwindSafe for Backoff
impl Send for Backoff
impl Sync for Backoff
impl Unpin for Backoff
impl UnsafeUnpin for Backoff
impl UnwindSafe for Backoff
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