Struct backoff::backoff::Constant
[−]
[src]
pub struct Constant { /* fields omitted */ }
Contant is a backoff policy which always returns a constant duration.
Methods
impl Constant
[src]
fn new(interval: Duration) -> Constant
Creates a new Constant backoff with interval
contant
backoff.
Trait Implementations
impl Backoff for Constant
[src]
fn next_backoff(&mut self) -> Option<Duration>
next_backoff() time is elapsed before it is called again. If it returns None, it means the operation timed out and no further retries are done. Read more
fn reset(&mut self)
Resets the internal state to the initial value.