[][src]Struct retry::delay::Fibonacci

pub struct Fibonacci { /* fields omitted */ }

Each retry uses a delay which is the sum of the two previous delays.

Depending on the problem at hand, a fibonacci delay strategy might perform better and lead to better throughput than the Exponential strategy.

See "A Performance Comparison of Different Backoff Algorithms under Different Rebroadcast Probabilities for MANETs." for more details.

Implementations

impl Fibonacci[src]

pub fn from_millis(millis: u64) -> Fibonacci

Notable traits for Fibonacci

impl Iterator for Fibonacci type Item = Duration;
[src]

Create a new Fibonacci using the given duration in milliseconds.

Trait Implementations

impl Debug for Fibonacci[src]

impl From<Duration> for Fibonacci[src]

impl Iterator for Fibonacci[src]

type Item = Duration

The type of the elements being iterated over.

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,