Enum env_logger::fmt::TimestampPrecision
source · pub enum TimestampPrecision {
Seconds,
Millis,
Micros,
Nanos,
}
Expand description
Formatting precision of timestamps.
Seconds give precision of full seconds, milliseconds give thousands of a second (3 decimal digits), microseconds are millionth of a second (6 decimal digits) and nanoseconds are billionth of a second (9 decimal digits).
Variants§
Seconds
Full second precision (0 decimal digits)
Millis
Millisecond precision (3 decimal digits)
Micros
Microsecond precision (6 decimal digits)
Nanos
Nanosecond precision (9 decimal digits)
Trait Implementations§
source§impl Clone for TimestampPrecision
impl Clone for TimestampPrecision
source§fn clone(&self) -> TimestampPrecision
fn clone(&self) -> TimestampPrecision
Returns a copy 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 TimestampPrecision
impl Debug for TimestampPrecision
source§impl Default for TimestampPrecision
impl Default for TimestampPrecision
The default timestamp precision is seconds.