pub trait Backoff<E> { // Required method fn next_backoff(&mut self, err: &E) -> Option<Duration>; }
A backoff policy for deciding to retry an operation.