pub struct MonotonicClock { /* private fields */ }Expand description
Monotonic nanosecond clock anchored at limiter creation time.
Implementations§
Source§impl MonotonicClock
Core monotonic time measurement operations for MonotonicClock.
impl MonotonicClock
Core monotonic time measurement operations for MonotonicClock.
Sourcepub fn from_instant(origin: Instant) -> Self
pub fn from_instant(origin: Instant) -> Self
Creates a monotonic clock anchored at a caller-supplied instant.
§Arguments
Instant- The monotonic origin instant.
Sourcepub fn get_origin(&self) -> Instant
pub fn get_origin(&self) -> Instant
Trait Implementations§
Source§impl Clone for MonotonicClock
impl Clone for MonotonicClock
impl Copy for MonotonicClock
Source§impl Debug for MonotonicClock
impl Debug for MonotonicClock
Auto Trait Implementations§
impl Forget for MonotonicClock
impl Freeze for MonotonicClock
impl Move for MonotonicClock
impl RefUnwindSafe for MonotonicClock
impl Send for MonotonicClock
impl Sync for MonotonicClock
impl Unpin for MonotonicClock
impl UnsafeUnpin 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