[][src]Enum stderrlog::Timestamp

pub enum Timestamp {
    Off,
    Second,
    Millisecond,
    Microsecond,
    Nanosecond,
}

State of the timestampping 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

impl Clone for Timestamp[src]

impl Copy for Timestamp[src]

impl Debug for Timestamp[src]

impl FromStr for Timestamp[src]

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

type Err = String

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.