Struct governor::clock::MonotonicClock
source · pub struct MonotonicClock;
Expand description
The monotonic clock implemented by Instant
.
Trait Implementations§
source§impl Clock for MonotonicClock
impl Clock for MonotonicClock
source§impl Clone for MonotonicClock
impl Clone for MonotonicClock
source§fn clone(&self) -> MonotonicClock
fn clone(&self) -> MonotonicClock
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 MonotonicClock
impl Debug for MonotonicClock
source§impl Default for MonotonicClock
impl Default for MonotonicClock
source§fn default() -> MonotonicClock
fn default() -> MonotonicClock
Returns the “default value” for a type. Read more
source§impl ReasonablyRealtime for MonotonicClock
impl ReasonablyRealtime for MonotonicClock
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 MonotonicClock
impl RefUnwindSafe for MonotonicClock
impl Send for MonotonicClock
impl Sync for MonotonicClock
impl Unpin for MonotonicClock
impl UnwindSafe for MonotonicClock
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
)