pub struct RetryContext {
pub attempt: usize,
pub method: Method,
pub body_replayable: bool,
pub cause: RetryCause,
pub remaining_total: Option<Duration>,
}Expand description
Context for a retry attempt.
Fields§
§attempt: usizeThe current attempt number (1-indexed).
method: MethodThe HTTP method.
body_replayable: boolWhether the request body is replayable.
cause: RetryCauseThe cause that triggered this retry.
remaining_total: Option<Duration>Remaining total budget.
Trait Implementations§
Source§impl Clone for RetryContext
impl Clone for RetryContext
Auto Trait Implementations§
impl Freeze for RetryContext
impl RefUnwindSafe for RetryContext
impl Send for RetryContext
impl Sync for RetryContext
impl Unpin for RetryContext
impl UnsafeUnpin for RetryContext
impl UnwindSafe for RetryContext
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