[][src]Struct collectd_plugin::CdTime

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 Clone for CdTime[src]

impl Copy for CdTime[src]

impl Debug for CdTime[src]

impl Eq for CdTime[src]

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

impl From<CdTime> for Duration[src]

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

impl From<Duration> for CdTime[src]

impl From<u64> for CdTime[src]

impl Into<u64> for CdTime[src]

impl PartialEq<CdTime> for CdTime[src]

impl StructuralEq for CdTime[src]

impl StructuralPartialEq for CdTime[src]

Auto Trait Implementations

impl RefUnwindSafe for CdTime

impl Send for CdTime

impl Sync for CdTime

impl Unpin for CdTime

impl UnwindSafe for CdTime

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.