pub struct RetryStats {
pub attempts: u32,
pub retries: u32,
pub total_delay_ms: u64,
pub succeeded: bool,
}Expand description
Statistics from a retry operation.
Fields§
§attempts: u32Number of attempts made.
retries: u32Number of retries (attempts - 1 if successful on first try).
total_delay_ms: u64Total delay time in milliseconds.
succeeded: boolWhether the operation eventually succeeded.
Implementations§
Source§impl RetryStats
impl RetryStats
Sourcepub fn had_retries(&self) -> bool
pub fn had_retries(&self) -> bool
Check if any retries were needed.
Trait Implementations§
Source§impl Clone for RetryStats
impl Clone for RetryStats
Source§fn clone(&self) -> RetryStats
fn clone(&self) -> RetryStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetryStats
impl Debug for RetryStats
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 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