pub enum RetryResponse<R, E> {
Ok(R),
Retry(E),
Critical(E),
}Expand description
Represents the possible outcomes of a retry-able operation.
Variants§
Ok(R)
Operation succeeded with result R
Retry(E)
Operation failed with error E, should be retried
Critical(E)
Operation failed with critical error E, should not be retried
Trait Implementations§
Auto Trait Implementations§
impl<R, E> Freeze for RetryResponse<R, E>
impl<R, E> RefUnwindSafe for RetryResponse<R, E>where
R: RefUnwindSafe,
E: RefUnwindSafe,
impl<R, E> Send for RetryResponse<R, E>
impl<R, E> Sync for RetryResponse<R, E>
impl<R, E> Unpin for RetryResponse<R, E>
impl<R, E> UnwindSafe for RetryResponse<R, E>where
R: UnwindSafe,
E: 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