Enum headers::common::retry_after::After
source · enum After {
DateTime(HttpDate),
Delay(Seconds),
}
Variants§
DateTime(HttpDate)
Retry after the given DateTime
Delay(Seconds)
Retry after this duration has elapsed
Trait Implementations§
source§impl<'a> From<&'a After> for HeaderValue
impl<'a> From<&'a After> for HeaderValue
source§fn from(after: &'a After) -> HeaderValue
fn from(after: &'a After) -> HeaderValue
Converts to this type from the input type.
source§impl TryFromValues for After
impl TryFromValues for After
source§fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>where
I: Iterator<Item = &'i HeaderValue>,
fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>where
I: Iterator<Item = &'i HeaderValue>,
Try to convert from the values into an instance of
Self
.impl Eq for After
impl StructuralPartialEq for After
Auto Trait Implementations§
impl Freeze for After
impl RefUnwindSafe for After
impl Send for After
impl Sync for After
impl Unpin for After
impl UnwindSafe for After
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)