Trait tokio_retry::Condition[][src]

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

Specifies under which conditions a retry is attempted.

Required methods

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

Loading content...

Implementors

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

Loading content...