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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more