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]

Creates a new Constant backoff with interval contant backoff.

Trait Implementations

impl Backoff for Constant
[src]

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

Resets the internal state to the initial value.