Struct governor::clock::QuantaClock [−][src]
pub struct QuantaClock(_);
Expand description
A clock using the default quanta::Clock
structure.
This clock uses [quanta::Clock.now
], which does retrieve the time synchronously. To use a
clock that uses a quanta background upkeep thread (which allows retrieving the time with an
atomic read, but requires a background thread that wakes up continually),
see QuantaUpkeepClock
.
Trait Implementations
type Instant = QuantaInstant
type Instant = QuantaInstant
A measurement of a monotonically increasing clock.
Returns the “default value” for a type. Read more
Returns a reference point at the start of an operation.
Auto Trait Implementations
impl RefUnwindSafe for QuantaClock
impl Send for QuantaClock
impl Sync for QuantaClock
impl Unpin for QuantaClock
impl UnwindSafe for QuantaClock
Blanket Implementations
Mutably borrows from an owned value. Read more