Struct ExponentialBackoffMaker
pub struct ExponentialBackoffMaker<R = HasherRng> { /* private fields */ }
A maker type for ExponentialBackoff.
Implementations
impl<R> ExponentialBackoffMaker<R>
where
R: Rng,
fn new(min: Duration, max: Duration, jitter: f64, rng: R) -> Result<Self, InvalidBackoff>Create a new
ExponentialBackoff.Error
Returns a config validation error if:
min>maxmax== 0jitter<0.0jitter>100.0jitteris NaN
Trait Implementations
impl Default for ExponentialBackoffMaker
fn default() -> Self
impl<R> MakeBackoff for ExponentialBackoffMaker<R>
where
R: Rng + Clone,
type Backoff = ExponentialBackoff<R>;fn make_backoff(&mut self) -> Self::Backoff
impl<R: Clone> Clone for ExponentialBackoffMaker<R>
fn clone(&self) -> Self
impl<R: Debug> Debug for ExponentialBackoffMaker<R>
fn fmt(&self, f: &mut Formatter<'_>) -> Result