Skip to main content

Backoff

Trait Backoff 

Source
pub trait Backoff:
    Iterator<Item = Duration>
    + Send
    + Sync
    + Unpin {
    // Required method
    fn reset(&mut self);
}
Expand description

A mostly internal trait to allow resetting backoff based on a reset duration

Required Methods§

Source

fn reset(&mut self)

Resets the internal state to the initial value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<B: Backoff + ?Sized> Backoff for Box<B>

Source§

fn reset(&mut self)

Implementors§