pub struct FailedAttempt {
pub index: u32,
pub failure: RequestFailure,
pub server_hint: Option<Duration>,
}Expand description
One failed attempt, as the policy sees it.
Fields§
§index: u32How many attempts already failed before this one. The first failure is
0, which is also the index into a ladder of delays.
failure: RequestFailure§server_hint: Option<Duration>What the provider asked for, when it said: the retry-after both
clients parse. Many providers never send one, and a policy that only
ever sees None still works.
Trait Implementations§
Source§impl Clone for FailedAttempt
impl Clone for FailedAttempt
impl Copy for FailedAttempt
Source§impl Debug for FailedAttempt
impl Debug for FailedAttempt
impl Eq for FailedAttempt
Source§impl PartialEq for FailedAttempt
impl PartialEq for FailedAttempt
impl StructuralPartialEq for FailedAttempt
Auto Trait Implementations§
impl Forget for FailedAttempt
impl Freeze for FailedAttempt
impl Move for FailedAttempt
impl RefUnwindSafe for FailedAttempt
impl Send for FailedAttempt
impl Sync for FailedAttempt
impl Unpin for FailedAttempt
impl UnsafeUnpin for FailedAttempt
impl UnwindSafe for FailedAttempt
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