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.
impl Copy for TimestampPrecision
Auto Trait Implementations§
impl Freeze for TimestampPrecision
impl RefUnwindSafe for TimestampPrecision
impl Send for TimestampPrecision
impl Sync for TimestampPrecision
impl Unpin for TimestampPrecision
impl UnwindSafe for TimestampPrecision
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)