Condition

Trait Condition 

pub trait Condition<E> {
    // Required method
    fn should_retry(&mut self, error: &E) -> bool;
}
Expand description

Specifies under which conditions a retry is attempted.

Required Methods§

fn should_retry(&mut self, error: &E) -> bool

Implementors§

§

impl<E, F> Condition<E> for F
where F: FnMut(&E) -> bool,