[][src]Struct clock_core::timer::TimerData

pub struct TimerData {
    pub total: Duration,
    pub remaining: Duration,
    pub start_moments: Vec<DateTime<Local>>,
    pub pause_moments: Vec<DateTime<Local>>,
}

Fields

total: Durationremaining: Durationstart_moments: Vec<DateTime<Local>>pause_moments: Vec<DateTime<Local>>

Implementations

impl TimerData[src]

pub fn start(&self) -> DateTime<Local>[src]

pub fn stop(&self) -> DateTime<Local>[src]

pub fn duration_expected(&self) -> Duration[src]

pub fn duration_actual(&self) -> Duration[src]

Trait Implementations

impl Clone for TimerData[src]

impl Debug for TimerData[src]

Auto Trait Implementations

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.