pub struct RetryWait {
pub failures: u32,
pub not_before: SystemTime,
pub wait: Duration,
}Expand description
A persisted wait: T and W, and the consecutive unsuccessful attempts
that chose W, so reopening does not reset the backoff exponent.
Fields§
§failures: u32Consecutive unsuccessful attempts; zero for a provider cooldown.
not_before: SystemTimeT: the wall-clock time before which no automatic attempt starts.
wait: DurationW: the full wait chosen when T was persisted.
Trait Implementations§
impl Copy for RetryWait
impl Eq for RetryWait
impl StructuralPartialEq for RetryWait
Auto Trait Implementations§
impl Freeze for RetryWait
impl RefUnwindSafe for RetryWait
impl Send for RetryWait
impl Sync for RetryWait
impl Unpin for RetryWait
impl UnsafeUnpin for RetryWait
impl UnwindSafe for RetryWait
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.