Expand description
A new-type wrapper over atomic::Atomic
that supports serde serialization
and a cleaner debug output.
All default operations on the wrapper type are using a relaxed memory ordering, which makes it suitable for counters and little else.
Fields
inner: Atomic<T>
The inner atomic instance
Implementations
Trait Implementations
sourceimpl Clearable for AtomicInt<u8>
impl Clearable for AtomicInt<u8>
sourcefn is_cleared(&self) -> bool
fn is_cleared(&self) -> bool
Returns true if self has been cleared and not yet been written to since.
sourceimpl Clearable for AtomicInt<u16>
impl Clearable for AtomicInt<u16>
sourcefn is_cleared(&self) -> bool
fn is_cleared(&self) -> bool
Returns true if self has been cleared and not yet been written to since.
sourceimpl Clearable for AtomicInt<u32>
impl Clearable for AtomicInt<u32>
sourcefn is_cleared(&self) -> bool
fn is_cleared(&self) -> bool
Returns true if self has been cleared and not yet been written to since.
sourceimpl Clearable for AtomicInt<u64>
impl Clearable for AtomicInt<u64>
sourcefn is_cleared(&self) -> bool
fn is_cleared(&self) -> bool
Returns true if self has been cleared and not yet been written to since.
sourceimpl Clearable for AtomicInt<u128>
impl Clearable for AtomicInt<u128>
sourcefn is_cleared(&self) -> bool
fn is_cleared(&self) -> bool
Returns true if self has been cleared and not yet been written to since.
Auto Trait Implementations
impl<T> !RefUnwindSafe for AtomicInt<T>
impl<T> Send for AtomicInt<T> where
T: Send,
impl<T> Sync for AtomicInt<T> where
T: Send,
impl<T> Unpin for AtomicInt<T> where
T: Unpin,
impl<T> UnwindSafe for AtomicInt<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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