pub trait IsTimestamp {
    // Required methods
    fn from_time_val(time_val: TimeVal) -> Self;
    fn from_time_spec(time_spec: TimeSpec) -> Self;
    fn into_time_val(self) -> TimeVal;
    fn into_time_spec(self) -> TimeSpec;
}
Expand description

Something which can be used as timestamp

Required Methods§

source

fn from_time_val(time_val: TimeVal) -> Self

Convert from time val

source

fn from_time_spec(time_spec: TimeSpec) -> Self

Convert from time spec

source

fn into_time_val(self) -> TimeVal

Convert into time val

source

fn into_time_spec(self) -> TimeSpec

Convert into time spec

Implementations on Foreign Types§

source§

impl IsTimestamp for TimeVal

source§

impl IsTimestamp for Duration

source§

impl IsTimestamp for SystemTime

Implementors§