Struct timestamp_source::Timer

source ·
pub struct Timer<T: Timestamp> { /* private fields */ }
Expand description

Implementation of ElapsedTimer

Implementations§

Creates a new Timer<T>.

Borrow the duration of this Timer<T>.

Borrow the mutable duration of this Timer<T>.

Trait Implementations§

Returns true if a timer duration is more(equal) then duration between from-to timestamps, otherwise false. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.