tokio_retry2

Trait Condition

source
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§

source

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

Implementors§

source§

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