pub enum RetryAfter {
DelaySeconds(u64),
HttpDate(HttpDate),
}Variants§
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
impl Eq for RetryAfter
Source§impl Header for RetryAfter
impl Header for RetryAfter
Source§fn name() -> &'static HeaderName
fn name() -> &'static HeaderName
Returns the name of this header. Read more
Source§fn from_values<'a>(
values: &mut ValueIter<'a, HeaderValue>,
) -> Result<Option<RetryAfter>, Error>
fn from_values<'a>( values: &mut ValueIter<'a, HeaderValue>, ) -> Result<Option<RetryAfter>, Error>
Parses the header from the raw value bytes. Read more
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 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