pub struct RetryContext {
pub fail_count: NonZeroU32,
pub slept_so_far: Duration,
pub error: InvocationError,
}Expand description
Context passed to RetryPolicy::should_retry.
Fields§
§fail_count: NonZeroU32Amount of times the instance of this request has failed.
slept_so_far: DurationSum of the durations for all previous continuations (not total time elapsed since first failure).
error: InvocationErrorThe most recent error caused by the instance of the request.
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