pub struct RetryState {
pub attempt: u32,
pub last_error: Option<String>,
pub total_wait_time: Duration,
pub history: Vec<AttemptInfo>,
}Expand description
State of a retry attempt.
Fields§
§attempt: u32Current attempt number (1-indexed).
last_error: Option<String>Last error message.
total_wait_time: DurationTotal time spent waiting.
history: Vec<AttemptInfo>History of attempts.
Trait Implementations§
Source§impl Clone for RetryState
impl Clone for RetryState
Source§fn clone(&self) -> RetryState
fn clone(&self) -> RetryState
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 RetryState
impl Debug for RetryState
Auto Trait Implementations§
impl Freeze for RetryState
impl RefUnwindSafe for RetryState
impl Send for RetryState
impl Sync for RetryState
impl Unpin for RetryState
impl UnwindSafe for RetryState
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