pub enum Retry<E> {
Temporary(E, Option<Duration>),
Fail(E),
}Expand description
What one try of a retry step gave.
Variants§
Temporary(E, Option<Duration>)
Trying again may work (a connection refused or reset, a 429 or 503); with the server’s
Retry-After.
Fail(E)
Trying again won’t help, or might repeat something already done (a message the server may have accepted).
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Retry<E>where
E: Freeze,
impl<E> RefUnwindSafe for Retry<E>where
E: RefUnwindSafe,
impl<E> Send for Retry<E>where
E: Send,
impl<E> Sync for Retry<E>where
E: Sync,
impl<E> Unpin for Retry<E>where
E: Unpin,
impl<E> UnsafeUnpin for Retry<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Retry<E>where
E: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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