pub struct RetryResult<T> {
pub result: Result<T, Error>,
pub retry_history: Vec<RetryInfo>,
pub total_attempts: u32,
}Expand description
Result of a retry operation, including retry history for diagnostics.
Fields§
§result: Result<T, Error>The successful result, if any
retry_history: Vec<RetryInfo>History of retry attempts (empty if succeeded on first try)
total_attempts: u32Total number of attempts made (including the final one)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RetryResult<T>where
T: Freeze,
impl<T> !RefUnwindSafe for RetryResult<T>
impl<T> Send for RetryResult<T>where
T: Send,
impl<T> Sync for RetryResult<T>where
T: Sync,
impl<T> Unpin for RetryResult<T>where
T: Unpin,
impl<T> !UnwindSafe for RetryResult<T>
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