pub struct AtomicMonotonicInstant(/* private fields */);
Expand description
An atomic wrapper around zx::MonotonicInstant
.
Implementations§
Source§impl AtomicMonotonicInstant
impl AtomicMonotonicInstant
Sourcepub fn new(time: MonotonicInstant) -> Self
pub fn new(time: MonotonicInstant) -> Self
Creates an [AtomicTime
].
Sourcepub fn load(&self, order: Ordering) -> MonotonicInstant
pub fn load(&self, order: Ordering) -> MonotonicInstant
Loads a zx::MonotonicInstant
.
Sourcepub fn store(&self, val: MonotonicInstant, order: Ordering)
pub fn store(&self, val: MonotonicInstant, order: Ordering)
Stores a zx::MonotonicInstant
.
Trait Implementations§
Source§impl Debug for AtomicMonotonicInstant
impl Debug for AtomicMonotonicInstant
Source§impl Default for AtomicMonotonicInstant
impl Default for AtomicMonotonicInstant
Source§fn default() -> AtomicMonotonicInstant
fn default() -> AtomicMonotonicInstant
Returns the “default value” for a type. Read more
Source§impl From<Instant<MonotonicTimeline>> for AtomicMonotonicInstant
impl From<Instant<MonotonicTimeline>> for AtomicMonotonicInstant
Source§fn from(t: MonotonicInstant) -> Self
fn from(t: MonotonicInstant) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for AtomicMonotonicInstant
impl RefUnwindSafe for AtomicMonotonicInstant
impl Send for AtomicMonotonicInstant
impl Sync for AtomicMonotonicInstant
impl Unpin for AtomicMonotonicInstant
impl UnwindSafe for AtomicMonotonicInstant
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