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
sourceimpl Clone for TimestampPrecision
impl Clone for TimestampPrecision
sourcefn clone(&self) -> TimestampPrecision
fn clone(&self) -> TimestampPrecision
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TimestampPrecision
impl Debug for TimestampPrecision
sourceimpl Default for TimestampPrecision
impl Default for TimestampPrecision
The default timestamp precision is seconds.
impl Copy for TimestampPrecision
Auto Trait Implementations
impl RefUnwindSafe for TimestampPrecision
impl Send for TimestampPrecision
impl Sync for TimestampPrecision
impl Unpin for TimestampPrecision
impl UnwindSafe for TimestampPrecision
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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