pub enum Timestamp {
Off,
Second,
Millisecond,
Microsecond,
Nanosecond,
}
Expand description
State of the timestamping in the logger.
Variants
Off
Disable timestamping of log messages
Second
Timestamp with second granularity
Millisecond
Timestamp with millisecond granularity
Microsecond
Timestamp with microsecond granularity
Nanosecond
Timestamp with nanosecond granularity
Trait Implementations
sourceimpl FromStr for Timestamp
impl FromStr for Timestamp
Provides a quick conversion of the following:
- “sec” ->
Timestamp::Second
- “ms” ->
Timestamp::Millisecond
- “us” ->
Timestamp::Microsecond
- “ns” ->
Timestamp::Nanosecond
- “none” | “off” ->
Timestamp::Off
This is provided as a helper for argument parsers
impl Copy for Timestamp
Auto Trait Implementations
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
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