std::sync::atomic::Atomic
pub struct Atomic<T>
- Kind
- struct
- Module
std::sync::atomic
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::sync::atomic in the Rust reference. This page has 55 cards.
pub struct Atomic<T>
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_ptr(&self) -> *mut bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn compare_and_swap( &self, current: bool, new: bool, order: Ordering, ) -> bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn compare_exchange( &self, current: bool, new: bool, success: Ordering, failure: Ordering, ) -> Result<bool, bool>
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn compare_exchange_weak( &self, current: bool, new: bool, success: Ordering, failure: Ordering, ) -> Result<bool, bool>
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_add(&self, val: i8, order: Ordering) -> i8
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_and(&self, val: bool, order: Ordering) -> bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_byte_add(&self, val: usize, order: Ordering) -> *mut T
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_byte_sub(&self, val: usize, order: Ordering) -> *mut T
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_max(&self, val: i8, order: Ordering) -> i8
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_min(&self, val: i8, order: Ordering) -> i8
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_nand(&self, val: bool, order: Ordering) -> bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_not(&self, order: Ordering) -> bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_or(&self, val: bool, order: Ordering) -> bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_ptr_add(&self, val: usize, order: Ordering) -> *mut T
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_ptr_sub(&self, val: usize, order: Ordering) -> *mut T
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_sub(&self, val: i8, order: Ordering) -> i8
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_update<F>( &self, set_order: Ordering, fetch_order: Ordering, f: F, ) -> Result<bool, bool> where F: FnMut(bool) -> Option<bool>
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fetch_xor(&self, val: bool, order: Ordering) -> bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn from_mut(v: &mut bool) -> &mut Atomic<bool>
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn from_mut_slice(v: &mut [bool]) -> &mut [Atomic<bool>]
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn from_ptr<'a>(ptr: *mut bool) -> &'a Atomic<bool>
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut(&mut self) -> &mut bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut_slice(this: &mut [Atomic<bool>]) -> &mut [bool]
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn into_inner(self) -> bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn load(&self, order: Ordering) -> bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(v: bool) -> Atomic<bool>
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn null() -> Atomic<*mut T>
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn store(&self, val: bool, order: Ordering)
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn swap(&self, val: bool, order: Ordering) -> bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_update( &self, set_order: Ordering, fetch_order: Ordering, f: impl FnMut(bool) -> Option<bool>, ) -> Result<bool, bool>
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn update( &self, set_order: Ordering, fetch_order: Ordering, f: impl FnMut(bool) -> bool, ) -> bool
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const ATOMIC_BOOL_INIT: Atomic<bool>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const ATOMIC_ISIZE_INIT: Atomic<isize>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const ATOMIC_USIZE_INIT: Atomic<usize>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicBool = Atomic<bool>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicI8 = Atomic<i8>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicI16 = Atomic<i16>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicI32 = Atomic<i32>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicI64 = Atomic<i64>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicI128 = Atomic<i128>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicIsize = Atomic<isize>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe trait AtomicPrimitive: Sized + Copy
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
type Storage
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicPtr<T> = Atomic<*mut T>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicU8 = Atomic<u8>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicU16 = Atomic<u16>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicU32 = Atomic<u32>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicU64 = Atomic<u64>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicU128 = Atomic<u128>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type AtomicUsize = Atomic<usize>;
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn compiler_fence(order: Ordering)
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fence(order: Ordering)
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
#[non_exhaustive]pub enum Ordering
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn spin_loop_hint()
std::sync::atomicSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.