Enum stderrlog::Timestamp [] [src]

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

State of the timestampping in the logger.

Variants

Disable timestamping of log messages

Timestamp with second granularity

Timestamp with microsecond granularity

Timestamp with nanosecond granularity

Trait Implementations

impl Clone for Timestamp
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Timestamp
[src]

impl Debug for Timestamp
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Timestamp
[src]

Provides a quick conversion of the following:

  • "sec" -> Timestamp::Second
  • "ms" -> Timestamp::Microsecond
  • "ns" -> Timestamp::Nanosecond
  • "none" | "off" -> Timestamp::Off

This is provided as a helper for argument parsers

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Timestamp

impl Sync for Timestamp