pub struct RetryAttempts<P, C> { /* private fields */ }Trait Implementations§
Source§impl<P: Clone, C: Clone> Clone for RetryAttempts<P, C>
impl<P: Clone, C: Clone> Clone for RetryAttempts<P, C>
Source§fn clone(&self) -> RetryAttempts<P, C>
fn clone(&self) -> RetryAttempts<P, C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P, T, E, FN> Policy<T, E> for RetryAttempts<P, FN>
impl<P, T, E, FN> Policy<T, E> for RetryAttempts<P, FN>
Source§type ForceRetryFuture = <P as Policy<T, E>>::ForceRetryFuture
type ForceRetryFuture = <P as Policy<T, E>>::ForceRetryFuture
Future type returned by
Policy::force_retry_after.Source§type RetryFuture = RetryMap<<P as Policy<T, E>>::RetryFuture, FN>
type RetryFuture = RetryMap<<P as Policy<T, E>>::RetryFuture, FN>
Future type returned by
Policy::retry.Source§fn force_retry_after(&self) -> Self::ForceRetryFuture
fn force_retry_after(&self) -> Self::ForceRetryFuture
This method is called right after calling your future and
if it completes before your future
Policy::retry will be called with None argument
without cancelling your future. Read moreSource§impl<P, T, E> Policy<T, E> for RetryAttempts<P, usize>where
P: Policy<T, E>,
impl<P, T, E> Policy<T, E> for RetryAttempts<P, usize>where
P: Policy<T, E>,
Source§type ForceRetryFuture = <P as Policy<T, E>>::ForceRetryFuture
type ForceRetryFuture = <P as Policy<T, E>>::ForceRetryFuture
Future type returned by
Policy::force_retry_after.Source§type RetryFuture = RetryMap<<P as Policy<T, E>>::RetryFuture, usize>
type RetryFuture = RetryMap<<P as Policy<T, E>>::RetryFuture, usize>
Future type returned by
Policy::retry.Source§fn force_retry_after(&self) -> Self::ForceRetryFuture
fn force_retry_after(&self) -> Self::ForceRetryFuture
This method is called right after calling your future and
if it completes before your future
Policy::retry will be called with None argument
without cancelling your future. Read moreimpl<P: Copy, C: Copy> Copy for RetryAttempts<P, C>
Auto Trait Implementations§
impl<P, C> Freeze for RetryAttempts<P, C>
impl<P, C> RefUnwindSafe for RetryAttempts<P, C>where
P: RefUnwindSafe,
C: RefUnwindSafe,
impl<P, C> Send for RetryAttempts<P, C>
impl<P, C> Sync for RetryAttempts<P, C>
impl<P, C> Unpin for RetryAttempts<P, C>
impl<P, C> UnwindSafe for RetryAttempts<P, C>where
P: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more