pub struct RetryDirective {
pub delay: Duration,
pub source: RetrySource,
}Expand description
A parsed server-directed retry instruction.
Fields§
§delay: DurationHow long to wait before the next attempt. A past reset date yields
Duration::ZERO.
source: RetrySourceWhich header the delay was parsed from.
Trait Implementations§
Source§impl Clone for RetryDirective
impl Clone for RetryDirective
impl Copy for RetryDirective
Source§impl Debug for RetryDirective
impl Debug for RetryDirective
impl Eq for RetryDirective
Source§impl PartialEq for RetryDirective
impl PartialEq for RetryDirective
impl StructuralPartialEq for RetryDirective
Auto Trait Implementations§
impl Freeze for RetryDirective
impl RefUnwindSafe for RetryDirective
impl Send for RetryDirective
impl Sync for RetryDirective
impl Unpin for RetryDirective
impl UnsafeUnpin for RetryDirective
impl UnwindSafe for RetryDirective
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.