Struct async_liveliness_monitor::support::AtomicInstant
source · [−]pub struct AtomicInstant { /* private fields */ }
Expand description
An Instant
, stored as an AtomicDuration
offset from an arbitrary epoch.
Due to Instant
not having any const epoch, that epoch is taken by calling Instant::now()
at construction.
AtomicInstant
’s range and resolution are bound by those of AtomicDuration
.
Defaults to Instant::now()
.
Implementations
sourceimpl AtomicInstant
impl AtomicInstant
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AtomicInstant
impl Send for AtomicInstant
impl Sync for AtomicInstant
impl Unpin for AtomicInstant
impl UnwindSafe for AtomicInstant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more