Trait Notify
backoff
pub trait Notify<E> { fn notify(&mut self, err: E, duration: Duration); }
Notify is called in retry_notify in case of errors.
retry_notify
fn notify(&mut self, err: E, duration: Duration)
impl<E, F> Notify<E> for F where F: FnMut(E, Duration),