pub struct RetryStats {
pub total_retries: AtomicU64,
pub successful_retries: AtomicU64,
pub failed_retries: AtomicU64,
pub retries_by_attempt: HashMap<usize, AtomicU64>,
}Expand description
Retry statistics
Fields§
§total_retries: AtomicU64Total retry attempts
successful_retries: AtomicU64Successful retries (eventual success)
failed_retries: AtomicU64Failed retries (gave up)
retries_by_attempt: HashMap<usize, AtomicU64>Retry counts by attempt number
Trait Implementations§
Source§impl Default for RetryStats
impl Default for RetryStats
Source§fn default() -> RetryStats
fn default() -> RetryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RetryStats
impl RefUnwindSafe for RetryStats
impl Send for RetryStats
impl Sync for RetryStats
impl Unpin for RetryStats
impl UnsafeUnpin for RetryStats
impl UnwindSafe for RetryStats
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