[−][src]Enum futures_retry::RetryPolicy
What to do when a future returns an error. Used in FutureRetry::new
and StreamRetry::new
.
Variants
Repeat
Create and poll a new future immediately.
Be careful!
Please be careful when using this variant since it might lead to a high (actually 100%) CPU usage in case a future instantly resolves into an error every time.
WaitRetry(Duration)
Wait for a given duration and make another attempt then.
ForwardError(E)
Don't give it another try, just pass the error further to the user.
Trait Implementations
impl<E: Eq> Eq for RetryPolicy<E>
[src]
impl<E: PartialEq> PartialEq<RetryPolicy<E>> for RetryPolicy<E>
[src]
fn eq(&self, other: &RetryPolicy<E>) -> bool
[src]
fn ne(&self, other: &RetryPolicy<E>) -> bool
[src]
impl<E: Debug> Debug for RetryPolicy<E>
[src]
Auto Trait Implementations
impl<E> Send for RetryPolicy<E> where
E: Send,
E: Send,
impl<E> Sync for RetryPolicy<E> where
E: Sync,
E: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,