Struct tokio_retry::decorators::LimitedDelay [] [src]

pub struct LimitedDelay<S: RetryStrategy> { /* fields omitted */ }

A decorator limiting the delay between attempts.

Trait Implementations

impl<S: Clone + RetryStrategy> Clone for LimitedDelay<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: RetryStrategy> RetryStrategy for LimitedDelay<S>
[src]

If Some is returned, causes a delay of the specified duration before the next attempt. If None is returned, causes no further attempts. Read more

Introduce full random jitter to the delay between attempts.

Limit the number of retries.

Limit the delay between attempts.

Run the provided action, and if it fails, retry it using this strategy.