pub struct RetryInfo {
pub attempt: u32,
pub status_code: Option<u16>,
pub delay_ms: u64,
pub reason: String,
}Expand description
Information about a single retry attempt for logging and error reporting.
Fields§
§attempt: u32The retry attempt number (1-indexed)
status_code: Option<u16>The HTTP status code that triggered the retry, if available
delay_ms: u64The delay in milliseconds before this retry
reason: StringHuman-readable reason for the retry
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RetryInfo
impl RefUnwindSafe for RetryInfo
impl Send for RetryInfo
impl Sync for RetryInfo
impl Unpin for RetryInfo
impl UnwindSafe for RetryInfo
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