Struct headers_ext::LastModified [−][src]
pub struct LastModified(_);
Last-Modified header, defined in
RFC7232
The Last-Modified header field in a response provides a timestamp
indicating the date and time at which the origin server believes the
selected representation was last modified, as determined at the
conclusion of handling the request.
ABNF
Expires = HTTP-date
Example values
Sat, 29 Oct 1994 19:43:31 GMT
Example
use headers::LastModified; use std::time::{Duration, SystemTime}; let modified = LastModified::from( SystemTime::now() - Duration::from_secs(60 * 60 * 24) );
Trait Implementations
impl Debug for LastModified[src]
impl Debug for LastModifiedfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for LastModified[src]
impl Clone for LastModifiedfn clone(&self) -> LastModified[src]
fn clone(&self) -> LastModifiedReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for LastModified[src]
impl Copy for LastModifiedimpl PartialEq for LastModified[src]
impl PartialEq for LastModifiedfn eq(&self, other: &LastModified) -> bool[src]
fn eq(&self, other: &LastModified) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &LastModified) -> bool[src]
fn ne(&self, other: &LastModified) -> boolThis method tests for !=.
impl Eq for LastModified[src]
impl Eq for LastModifiedimpl PartialOrd for LastModified[src]
impl PartialOrd for LastModifiedfn partial_cmp(&self, other: &LastModified) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &LastModified) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &LastModified) -> bool[src]
fn lt(&self, other: &LastModified) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &LastModified) -> bool[src]
fn le(&self, other: &LastModified) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &LastModified) -> bool[src]
fn gt(&self, other: &LastModified) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &LastModified) -> bool[src]
fn ge(&self, other: &LastModified) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for LastModified[src]
impl Ord for LastModifiedfn cmp(&self, other: &LastModified) -> Ordering[src]
fn cmp(&self, other: &LastModified) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for LastModified[src]
impl Hash for LastModifiedfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl From<SystemTime> for LastModified[src]
impl From<SystemTime> for LastModifiedfn from(time: SystemTime) -> LastModified[src]
fn from(time: SystemTime) -> LastModifiedPerforms the conversion.
impl From<LastModified> for SystemTime[src]
impl From<LastModified> for SystemTimefn from(date: LastModified) -> SystemTime[src]
fn from(date: LastModified) -> SystemTimePerforms the conversion.
Auto Trait Implementations
impl Send for LastModified
impl Send for LastModifiedimpl Sync for LastModified
impl Sync for LastModified