Struct paxakos::retry::RetryWithBackoff
source · pub struct RetryWithBackoff<B, I>(_, _);
Expand description
Retry policy basod on a Backoff
implementation.
Trait Implementations
sourceimpl<C, I> Default for RetryWithBackoff<ExponentialBackoff<C>, I>where
C: Clock + Default + Send + 'static,
I: Invocation + Send,
impl<C, I> Default for RetryWithBackoff<ExponentialBackoff<C>, I>where
C: Clock + Default + Send + 'static,
I: Invocation + Send,
sourceimpl<B: Backoff, I> From<B> for RetryWithBackoff<B, I>
impl<B: Backoff, I> From<B> for RetryWithBackoff<B, I>
sourceimpl<B: Backoff + Send + 'static, I: Invocation + Send> RetryPolicy for RetryWithBackoff<B, I>
impl<B: Backoff + Send + 'static, I: Invocation + Send> RetryPolicy for RetryWithBackoff<B, I>
type Invocation = I
type Invocation = I
Parametrization of the paxakos algorithm.
type Error = AbortedError<I>
type Error = AbortedError<I>
Type of error produced by this policy.
type StaticError = AbortedError<I>
type StaticError = AbortedError<I>
type Future = Pin<Box<dyn Future<Output = Result<(), <RetryWithBackoff<B, I> as RetryPolicy>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<(), <RetryWithBackoff<B, I> as RetryPolicy>::Error>> + Send + 'static, Global>>
Type of future returned from RetryPolicy::eval.
sourcefn eval(&mut self, err: AppendError<Self::Invocation>) -> Self::Future
fn eval(&mut self, err: AppendError<Self::Invocation>) -> Self::Future
Determines wheter another attempt to append should be made. Read more
Auto Trait Implementations
impl<B, I> RefUnwindSafe for RetryWithBackoff<B, I>where
B: RefUnwindSafe,
I: RefUnwindSafe,
impl<B, I> Send for RetryWithBackoff<B, I>where
B: Send,
I: Send,
impl<B, I> Sync for RetryWithBackoff<B, I>where
B: Sync,
I: Sync,
impl<B, I> Unpin for RetryWithBackoff<B, I>where
B: Unpin,
I: Unpin,
impl<B, I> UnwindSafe for RetryWithBackoff<B, I>where
B: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more