[−][src]Struct adaptive_backoff::backoff::ExponentialBackoffBuilder
Implementations
impl ExponentialBackoffBuilder
[src]
pub fn adaptive<'a>(
&'a mut self
) -> AdaptiveBuilder<'a, ExponentialBackoff, Self>
[src]
&'a mut self
) -> AdaptiveBuilder<'a, ExponentialBackoff, Self>
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]
pub fn default() -> ExponentialBackoffBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExponentialBackoffBuilder
[src]
impl Send for ExponentialBackoffBuilder
[src]
impl Sync for ExponentialBackoffBuilder
[src]
impl Unpin for ExponentialBackoffBuilder
[src]
impl UnwindSafe for ExponentialBackoffBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,