pub struct Date(/* private fields */);
Expand description
Message Date
header
Defined in RFC2822
Implementations§
Source§impl Date
impl Date
Sourcepub fn new(st: SystemTime) -> Self
pub fn new(st: SystemTime) -> Self
Build a Date
from SystemTime
Trait Implementations§
Source§impl From<Date> for SystemTime
impl From<Date> for SystemTime
Source§fn from(this: Date) -> SystemTime
fn from(this: Date) -> SystemTime
Converts to this type from the input type.
Source§impl From<SystemTime> for Date
impl From<SystemTime> for Date
Source§fn from(st: SystemTime) -> Self
fn from(st: SystemTime) -> Self
Converts to this type from the input type.
impl Copy for Date
impl Eq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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