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]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for CdTime
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for CdTime
[src]

impl Clone for CdTime
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for CdTime
[src]

impl<Tz: TimeZone> From<DateTime<Tz>> for CdTime
[src]

[src]

Performs the conversion.

impl From<CdTime> for DateTime<Utc>
[src]

[src]

Performs the conversion.

impl From<Duration> for CdTime
[src]

[src]

Performs the conversion.

impl From<CdTime> for Duration
[src]

[src]

Performs the conversion.

impl From<cdtime_t> for CdTime
[src]

[src]

Performs the conversion.

impl Into<cdtime_t> for CdTime
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for CdTime

impl Sync for CdTime