[][src]Trait hybrid_clocks::ClockSource

pub trait ClockSource {
    type Time: Ord + Copy + Sub<Output = Self::Delta> + Debug;
    type Delta: Ord;
    fn now(&mut self) -> Self::Time;
}

Describes the interface that the inner clock source must provide.

Associated Types

type Time: Ord + Copy + Sub<Output = Self::Delta> + Debug

Represents the described clock time.

type Delta: Ord

The difference between two timestamps.

Loading content...

Required methods

fn now(&mut self) -> Self::Time

Returns the current clock time.

Loading content...

Implementors

impl ClockSource for WallMS[src]

type Time = WallMST

type Delta = Duration

impl ClockSource for WallNS[src]

type Time = WallNST

type Delta = Duration

impl<'a> ClockSource for ManualClock[src]

type Time = u64

type Delta = u64

Loading content...