Trait backoff::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),