[][src]Trait again::Condition

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

A type to determine if a failed Future should be retried

A implementation is provided for Fn(&Err) -> bool allowing you to use simple closure or fn handles

Required methods

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

Return true if an Futures error is worth retrying

Loading content...

Implementors

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

Loading content...