pub struct RetryAfter {
pub seconds: u64,
}Expand description
A minimal carrier for a “retry after N seconds” signal.
This is deliberately protocol-agnostic: parsing HTTP 429 Too Many Requests
/ Retry-After headers into a RetryAfter lives in the future
atomr-streams-io crate. respect_retry_after only consumes the
already-extracted duration.
Fields§
§seconds: u64Number of seconds the producer asked us to back off.
Trait Implementations§
Source§impl Clone for RetryAfter
impl Clone for RetryAfter
Source§fn clone(&self) -> RetryAfter
fn clone(&self) -> RetryAfter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetryAfter
impl Debug for RetryAfter
Source§impl PartialEq for RetryAfter
impl PartialEq for RetryAfter
Source§fn eq(&self, other: &RetryAfter) -> bool
fn eq(&self, other: &RetryAfter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RetryAfter
impl Eq for RetryAfter
impl StructuralPartialEq for RetryAfter
Auto Trait Implementations§
impl Freeze for RetryAfter
impl RefUnwindSafe for RetryAfter
impl Send for RetryAfter
impl Sync for RetryAfter
impl Unpin for RetryAfter
impl UnsafeUnpin for RetryAfter
impl UnwindSafe for RetryAfter
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.