Struct exponential_backoff::Backoff[][src]

pub struct Backoff { /* fields omitted */ }

Exponential backoff.

Methods

impl Backoff
[src]

Create a new instance.

Set the min and max durations.

Set the amount of jitter per backoff.

Panics

This method panics if a number smaller than 0 or larger than 1 is provided.

Set the growth factor for each iteration of the backoff.

Important traits for Iter<'b>

Create an iterator.

Trait Implementations

impl Debug for Backoff
[src]

Formats the value using the given formatter. Read more

impl Clone for Backoff
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'b> IntoIterator for &'b Backoff
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

impl Send for Backoff

impl Sync for Backoff