[][src]Trait adventure::retry::RetrialPredicate

pub trait RetrialPredicate<R> where
    R: BaseRequest
{ fn should_retry(
        &self,
        req: &R,
        err: &<R as BaseRequest>::Error,
        next_interval: Duration
    ) -> bool; }

Required methods

fn should_retry(
    &self,
    req: &R,
    err: &<R as BaseRequest>::Error,
    next_interval: Duration
) -> bool

Loading content...

Implementations on Foreign Types

impl<R> RetrialPredicate<R> for () where
    R: RetriableRequest
[src]

Loading content...

Implementors

impl<F, R> RetrialPredicate<R> for F where
    R: BaseRequest,
    F: Fn(&R, &<R as BaseRequest>::Error, Duration) -> bool
[src]

Loading content...