[][src]Struct adaptive_backoff::backoff::ExponentialBackoffBuilder

pub struct ExponentialBackoffBuilder { /* fields omitted */ }

Implementations

impl ExponentialBackoffBuilder[src]

pub fn adaptive<'a>(
    &'a mut self
) -> AdaptiveBuilder<'a, ExponentialBackoff, Self>
[src]

impl ExponentialBackoffBuilder[src]

pub fn min(&mut self, min: Duration) -> &mut Self[src]

The minimum and initial delay of the backoff.

pub fn max(&mut self, max: Duration) -> &mut Self[src]

The capped maximum delay that can be returned.

pub fn factor(&mut self, f: f64) -> &mut Self[src]

The factor that the delay increases by on each hit. Defaults to 2.0.

Trait Implementations

impl BackoffBuilder<ExponentialBackoff> for ExponentialBackoffBuilder[src]

pub fn build(&mut self) -> Result<ExponentialBackoff>[src]

Build finishes the exponential backoff and returns it or an error.

impl Debug for ExponentialBackoffBuilder[src]

impl Default for ExponentialBackoffBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.