Struct hyper::header::LastModified
[−]
[src]
pub struct LastModified(pub HttpDate);
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 hyper::header::{Headers, LastModified}; use std::time::{SystemTime, Duration}; let mut headers = Headers::new(); let modified = SystemTime::now() - Duration::from_secs(60 * 60 * 24); headers.set(LastModified(modified.into()));
Trait Implementations
impl Clone for LastModified
[src]
impl Clone for LastModified
fn clone(&self) -> LastModified
[src]
fn clone(&self) -> LastModified
Returns 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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for LastModified
[src]
impl Debug for LastModified
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for LastModified
[src]
impl PartialEq for LastModified
fn eq(&self, __arg_0: &LastModified) -> bool
[src]
fn eq(&self, __arg_0: &LastModified) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LastModified) -> bool
[src]
fn ne(&self, __arg_0: &LastModified) -> bool
This method tests for !=
.
impl Deref for LastModified
[src]
impl Deref for LastModified
type Target = HttpDate
The resulting type after dereferencing.
fn deref(&self) -> &HttpDate
[src]
fn deref(&self) -> &HttpDate
Dereferences the value.
impl DerefMut for LastModified
[src]
impl DerefMut for LastModified
impl Header for LastModified
[src]
impl Header for LastModified
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
fn parse_header(raw: &Raw) -> Result<Self>
[src]
fn parse_header(raw: &Raw) -> Result<Self>
Parse a header from a raw stream of bytes. Read more
fn fmt_header(&self, f: &mut Formatter) -> Result
[src]
fn fmt_header(&self, f: &mut Formatter) -> Result
Format a header to outgoing stream. Read more
impl Display for LastModified
[src]
impl Display for LastModified
Auto Trait Implementations
impl Send for LastModified
impl Send for LastModified
impl Sync for LastModified
impl Sync for LastModified