fuchsia_backoff

Trait Backoff

Source
pub trait Backoff<E> {
    // Required method
    fn next_backoff(&mut self, err: &E) -> Option<Duration>;
}
Expand description

A backoff policy for deciding to retry an operation.

Required Methods§

Source

fn next_backoff(&mut self, err: &E) -> Option<Duration>

Implementors§

Source§

impl<E, I> Backoff<E> for I
where I: Iterator<Item = Duration>,