pub struct LastModified(pub SystemTime);Expand description
Last-Modified header.
Tuple Fields§
§0: SystemTimeImplementations§
Source§impl LastModified
impl LastModified
Sourcepub fn from_unix_timestamp(seconds: u64) -> Option<Self>
pub fn from_unix_timestamp(seconds: u64) -> Option<Self>
Creates a new LastModified from a UNIX timestamp.
Trait Implementations§
Source§impl Clone for LastModified
impl Clone for LastModified
Source§fn clone(&self) -> LastModified
fn clone(&self) -> LastModified
Returns a duplicate of the value. Read more
1.0.0 · 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 LastModified
impl Debug for LastModified
Source§impl Header for LastModified
impl Header for LastModified
Source§fn header_name() -> HeaderName
fn header_name() -> HeaderName
The name of the header.
Source§fn decode(value: &HeaderValue) -> Option<Self>
fn decode(value: &HeaderValue) -> Option<Self>
Decode the header from a
HeaderValue.Source§fn encode(self) -> HeaderValue
fn encode(self) -> HeaderValue
Encode the header into a
HeaderValue.impl Copy for LastModified
Auto Trait Implementations§
impl Freeze for LastModified
impl RefUnwindSafe for LastModified
impl Send for LastModified
impl Sync for LastModified
impl Unpin for LastModified
impl UnwindSafe for LastModified
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