Struct collectd_plugin::CdTime [−][src]
pub struct CdTime(pub u64);
CdTime allows for ergonomic interop between collectd's cdtime_t and chrono's Duration and
DateTime. The single field represents epoch nanoseconds.
Trait Implementations
impl Debug for CdTime[src]
impl Debug for CdTimefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for CdTime[src]
impl PartialEq for CdTimefn eq(&self, other: &CdTime) -> bool[src]
fn eq(&self, other: &CdTime) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &CdTime) -> bool[src]
fn ne(&self, other: &CdTime) -> boolThis method tests for !=.
impl Eq for CdTime[src]
impl Eq for CdTimeimpl Clone for CdTime[src]
impl Clone for CdTimefn clone(&self) -> CdTime[src]
fn clone(&self) -> CdTimeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for CdTime[src]
impl Copy for CdTimeimpl<Tz: TimeZone> From<DateTime<Tz>> for CdTime[src]
impl<Tz: TimeZone> From<DateTime<Tz>> for CdTimeimpl From<CdTime> for DateTime<Utc>[src]
impl From<CdTime> for DateTime<Utc>impl From<Duration> for CdTime[src]
impl From<Duration> for CdTimeimpl From<CdTime> for Duration[src]
impl From<CdTime> for Durationimpl From<cdtime_t> for CdTime[src]
impl From<cdtime_t> for CdTimeimpl Into<cdtime_t> for CdTime[src]
impl Into<cdtime_t> for CdTime