pub struct RetryResult<T, E> {
pub result: Result<T, E>,
pub attempts: usize,
pub total_time: Duration,
}Available on crate feature
retry only.Expand description
Result of a retry operation.
Fields§
§result: Result<T, E>The final result.
attempts: usizeNumber of attempts made.
total_time: DurationTotal time spent (including delays).
Implementations§
Source§impl<T, E> RetryResult<T, E>
impl<T, E> RetryResult<T, E>
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for RetryResult<T, E>
impl<T, E> RefUnwindSafe for RetryResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for RetryResult<T, E>
impl<T, E> Sync for RetryResult<T, E>
impl<T, E> Unpin for RetryResult<T, E>
impl<T, E> UnsafeUnpin for RetryResult<T, E>where
T: UnsafeUnpin,
E: UnsafeUnpin,
impl<T, E> UnwindSafe for RetryResult<T, E>where
T: 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