pub struct LogDate {
pub nano: u32,
pub sec: u8,
pub min: u8,
pub hour: u8,
pub day: u8,
pub mon: u8,
pub year: u16,
pub wday: u8,
}
Expand description
HTTP timestamp type.
Parse using FromStr
impl.
Format using the Display
trait.
Convert timestamp into/from SytemTime
to use.
Supports comparsion and sorting.
Fields
nano: u32
0…999999999
sec: u8
0…59
min: u8
0…59
hour: u8
0…23
day: u8
1…31
mon: u8
1…12
year: u16
1970…9999
wday: u8
1…7
Trait Implementations
sourceimpl From<LogDate> for SystemTime
impl From<LogDate> for SystemTime
sourcefn from(v: LogDate) -> SystemTime
fn from(v: LogDate) -> SystemTime
Converts to this type from the input type.
sourceimpl From<SystemTime> for LogDate
impl From<SystemTime> for LogDate
sourcefn from(v: SystemTime) -> LogDate
fn from(v: SystemTime) -> LogDate
Converts to this type from the input type.
sourceimpl Ord for LogDate
impl Ord for LogDate
sourceimpl PartialOrd<LogDate> for LogDate
impl PartialOrd<LogDate> for LogDate
sourcefn partial_cmp(&self, other: &LogDate) -> Option<Ordering>
fn partial_cmp(&self, other: &LogDate) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for LogDate
impl Eq for LogDate
impl StructuralEq for LogDate
impl StructuralPartialEq for LogDate
Auto Trait Implementations
impl RefUnwindSafe for LogDate
impl Send for LogDate
impl Sync for LogDate
impl Unpin for LogDate
impl UnwindSafe for LogDate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more