[−][src]Struct headers::Expires
Expires
header, defined in RFC7234
The Expires
header field gives the date/time after which the
response is considered stale.
The presence of an Expires field does not imply that the original resource will change or cease to exist at, before, or after that time.
ABNF
Expires = HTTP-date
Example values
Thu, 01 Dec 1994 16:00:00 GMT
Example
use headers::Expires; use std::time::{SystemTime, Duration}; let time = SystemTime::now() + Duration::from_secs(60 * 60 * 24); let expires = Expires::from(time);
Trait Implementations
impl Eq for Expires
[src]
impl Clone for Expires
[src]
impl PartialOrd<Expires> for Expires
[src]
fn partial_cmp(&self, other: &Expires) -> Option<Ordering>
[src]
fn lt(&self, other: &Expires) -> bool
[src]
fn le(&self, other: &Expires) -> bool
[src]
fn gt(&self, other: &Expires) -> bool
[src]
fn ge(&self, other: &Expires) -> bool
[src]
impl Ord for Expires
[src]
fn cmp(&self, other: &Expires) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Expires> for Expires
[src]
impl From<SystemTime> for Expires
[src]
fn from(time: SystemTime) -> Expires
[src]
impl From<Expires> for SystemTime
[src]
fn from(date: Expires) -> SystemTime
[src]
impl Copy for Expires
[src]
impl Hash for Expires
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for Expires
[src]
impl Header for Expires
[src]
fn name() -> &'static HeaderName
[src]
fn decode<'i, I>(values: &mut I) -> Result<Self, Error> where
I: Iterator<Item = &'i HeaderValue>,
[src]
I: Iterator<Item = &'i HeaderValue>,
fn encode<E: Extend<HeaderValue>>(&self, values: &mut E)
[src]
Auto Trait Implementations
impl Unpin for Expires
impl Sync for Expires
impl Send for Expires
impl UnwindSafe for Expires
impl RefUnwindSafe for Expires
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self