Enum libdata::time::Time
[−]
pub enum Time { Absolute(SystemTime), Relative(Duration), }
A time specification, as requested by the client.
Variants
Absolute(SystemTime)
An absolute time.
Relative(Duration)
A relative time.
The relative time is represented as a negative number of milliseconds.
Trait Implementations
impl Clone for Time
fn clone(&self) -> Time
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Time
impl Eq for Time
impl PartialEq for Time
fn eq(&self, __arg_0: &Time) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Time) -> bool
This method tests for !=
.
impl Into<SystemTime> for Time
fn into(self) -> SystemTime
Performs the conversion.