pub enum Backoff {
Linear {
increment: Duration,
ceiling: Duration,
},
Exponential {
exponent: f32,
ceiling: Duration,
},
}Expand description
Backoff configuration used to define how BlockStoreRetry should time further attempts when store reads fail.
Variants§
Linear
The time between retry attempts increases linearly
Fields
Exponential
The time between retry attempts increases exponentially
Implementations§
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 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