pub struct RetryAttempt {
pub attempt: u32,
pub reason: String,
pub elapsed: Duration,
}Expand description
One failed attempt’s record, captured during run for surfacing
via crate::session::AnvilSession::retry_history and
gitway --test --json’s data.retry_attempts envelope.
Fields§
§attempt: u321-indexed attempt number. An attempt that succeeds is not recorded here; the history vector contains only failures that triggered a retry (or the final failure when the loop bails).
reason: StringStable error code from AnvilError::error_code.
elapsed: DurationWall-clock elapsed since the loop started, at the moment this attempt failed.
Trait Implementations§
Source§impl Clone for RetryAttempt
impl Clone for RetryAttempt
Source§fn clone(&self) -> RetryAttempt
fn clone(&self) -> RetryAttempt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RetryAttempt
impl Debug for RetryAttempt
Source§impl PartialEq for RetryAttempt
impl PartialEq for RetryAttempt
Source§fn eq(&self, other: &RetryAttempt) -> bool
fn eq(&self, other: &RetryAttempt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RetryAttempt
impl StructuralPartialEq for RetryAttempt
Auto Trait Implementations§
impl Freeze for RetryAttempt
impl RefUnwindSafe for RetryAttempt
impl Send for RetryAttempt
impl Sync for RetryAttempt
impl Unpin for RetryAttempt
impl UnsafeUnpin for RetryAttempt
impl UnwindSafe for RetryAttempt
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