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§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AtomicInstant
impl RefUnwindSafe for AtomicInstant
impl Send for AtomicInstant
impl Sync for AtomicInstant
impl Unpin for AtomicInstant
impl UnwindSafe for AtomicInstant
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