Enum libdata::time::Time []

pub enum Time {
    Absolute(SystemTime),
    Relative(Duration),
}

A time specification, as requested by the client.

Variants

An absolute time.

A relative time.

The relative time is represented as a negative number of milliseconds.

Trait Implementations

impl Clone for Time

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Time

Formats the value using the given formatter.

impl Eq for Time

impl PartialEq for Time

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Into<SystemTime> for Time

Performs the conversion.