Struct exponential_backoff::Backoff[][src]

pub struct Backoff { /* fields omitted */ }

Exponential backoff struct.

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.

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

Auto Trait Implementations

impl Send for Backoff

impl Sync for Backoff