Trait tokio_retry::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