[−][src]Trait adventure::retry::RetrialPredicate
Required methods
fn should_retry(
&self,
req: &R,
err: &<R as BaseRequest>::Error,
next_interval: Duration
) -> bool
&self,
req: &R,
err: &<R as BaseRequest>::Error,
next_interval: Duration
) -> bool
Implementations on Foreign Types
impl<R> RetrialPredicate<R> for () where
R: RetriableRequest,
[src]
R: RetriableRequest,
fn should_retry(
&self,
req: &R,
err: &<R as BaseRequest>::Error,
next_interval: Duration
) -> bool
[src]
&self,
req: &R,
err: &<R as BaseRequest>::Error,
next_interval: Duration
) -> bool
Implementors
impl<F, R> RetrialPredicate<R> for F where
R: BaseRequest,
F: Fn(&R, &<R as BaseRequest>::Error, Duration) -> bool,
[src]
R: BaseRequest,
F: Fn(&R, &<R as BaseRequest>::Error, Duration) -> bool,
fn should_retry(
&self,
req: &R,
err: &<R as BaseRequest>::Error,
next_interval: Duration
) -> bool
[src]
&self,
req: &R,
err: &<R as BaseRequest>::Error,
next_interval: Duration
) -> bool