Enum base::syslog::fmt::TimestampPrecision
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§
§impl Clone for TimestampPrecision
impl Clone for TimestampPrecision
§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 more§impl Debug for TimestampPrecision
impl Debug for TimestampPrecision
§impl Default for TimestampPrecision
impl Default for TimestampPrecision
The default timestamp precision is seconds.
§fn default() -> TimestampPrecision
fn default() -> TimestampPrecision
Returns the “default value” for a type. Read more
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§
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