tokio_retry

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