Enum ilc_base::event::Time
[−]
[src]
pub enum Time { Unknown, Hms(u8, u8, u8), Timestamp(i64), }
Different log formats carry different amounts of information. Some might hold enough information to calculate precise timestamps, others might only suffice for the time of day.
Variants
Unknown
Hms(u8, u8, u8)
Timestamp(i64)
Methods
impl Time
[src]
fn from_format(tz: &FixedOffset, s: &str, f: &str) -> Time
fn with_format(&self, tz: &FixedOffset, f: &str) -> String
fn as_timestamp(&self) -> i64
fn to_timestamp(&self) -> Time
Trait Implementations
impl Clone for Time
[src]
fn clone(&self) -> Time
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Time
[src]
impl PartialEq for Time
[src]
fn eq(&self, __arg_0: &Time) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Time) -> bool
This method tests for !=
.
impl Eq for Time
[src]
impl Ord for Time
[src]
fn cmp(&self, __arg_0: &Time) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Hash for Time
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Encodable for Time
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
impl Decodable for Time
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Time, __D::Error>
Deserialize a value using a Decoder
.
impl PartialOrd for Time
[src]
fn partial_cmp(&self, other: &Time) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more