Enum retry_future::RetryPolicy
source · [−]Expand description
Return type of inner future inside RetryFuture
Fail variant means unrecoverable error
If future propagates errors early by using ? then
Retry will contain error inside it.
If you want to provide some debug information about
why a Future failed, you can construct error youself.
Variants
Retry(Option<Error>)
Fail(E)
Unrecoverable error which means that the RetryFuture
Future will immediately return with an error
Trait Implementations
sourceimpl<E: Debug> Debug for RetryPolicy<E>
impl<E: Debug> Debug for RetryPolicy<E>
Auto Trait Implementations
impl<E = String> !RefUnwindSafe for RetryPolicy<E>
impl<E> Send for RetryPolicy<E>where
E: Send,
impl<E> Sync for RetryPolicy<E>where
E: Sync,
impl<E> Unpin for RetryPolicy<E>where
E: Unpin,
impl<E = String> !UnwindSafe for RetryPolicy<E>
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