Struct governor::clock::QuantaClock
source · pub struct QuantaClock { /* private fields */ }
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§
source§impl Clock for QuantaClock
impl Clock for QuantaClock
source§impl Clone for QuantaClock
impl Clone for QuantaClock
source§fn clone(&self) -> QuantaClock
fn clone(&self) -> QuantaClock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QuantaClock
impl Debug for QuantaClock
source§impl Default for QuantaClock
impl Default for QuantaClock
source§impl ReasonablyRealtime for QuantaClock
impl ReasonablyRealtime for QuantaClock
source§fn reference_point(&self) -> Self::Instant
fn reference_point(&self) -> Self::Instant
Returns a reference point at the start of an operation.
Auto Trait Implementations§
impl Freeze for QuantaClock
impl RefUnwindSafe for QuantaClock
impl Send for QuantaClock
impl Sync for QuantaClock
impl Unpin for QuantaClock
impl UnwindSafe for QuantaClock
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)