[][src]Trait bluetooth_mesh::timestamp::TimestampTrait

pub trait TimestampTrait: Sized + Add<Duration, Output = Self> + Clone + Copy + Ord + Eq {
    fn now() -> Self;
fn until(&self, later: Self) -> Option<Duration>;
fn since(&self, earlier: Self) -> Option<Duration>; fn with_delay(delay: Duration) -> Self { ... } }

Required methods

fn now() -> Self

fn until(&self, later: Self) -> Option<Duration>

Returns Some(self - other) or None if self > other.

fn since(&self, earlier: Self) -> Option<Duration>

Returns Some(other - self) or None if other > self.

Loading content...

Provided methods

fn with_delay(delay: Duration) -> Self

Loading content...

Implementors

impl TimestampTrait for DummyTimestamp[src]

impl TimestampTrait for Timestamp[src]

Loading content...