backoff

Trait Notify

Source
pub trait Notify<E> {
    // Required method
    fn notify(&mut self, err: E, duration: Duration);
}
Expand description

Notify is called in retry_notify in case of errors.

Required Methods§

Source

fn notify(&mut self, err: E, duration: Duration)

Implementors§

Source§

impl<E, F> Notify<E> for F
where F: FnMut(E, Duration),