pub trait BlockingRetryableWithContext<B, T, E, Ctx, F>
where B: BackoffBuilder, F: FnMut(Ctx) -> (Ctx, Result<T, E>),
{ // Required method fn retry( self, builder: &B ) -> BlockingRetry<<B as BackoffBuilder>::Backoff, T, E, Ctx, F>; }
Expand description

BlockingRetryableWithContext will add retry support for functions.

Required Methods§

source

fn retry( self, builder: &B ) -> BlockingRetry<<B as BackoffBuilder>::Backoff, T, E, Ctx, F>

Generate a new retry

Implementors§

source§

impl<B, T, E, Ctx, F> BlockingRetryableWithContext<B, T, E, Ctx, F> for F
where B: BackoffBuilder, F: FnMut(Ctx) -> (Ctx, Result<T, E>),