pub enum Ordering {
AcqRel,
SeqCst,
}
Expand description
The memory ordering for atomic instructions.
For an in-depth explanation of memory orderings, see the C++ documentation
for memory_order
or the Rust documentation for atomic::Ordering
.
Variants§
AcqRel
For a load, it acquires; this orders all operations before the last “releasing” store. For a store, it releases; this orders all operations before it at the next “acquiring” load.
SeqCst
Like AcqRel
but all threads see all sequentially consistent operations
in the same order.
Trait Implementations§
impl Copy for Ordering
Auto Trait Implementations§
impl Freeze for Ordering
impl RefUnwindSafe for Ordering
impl Send for Ordering
impl Sync for Ordering
impl Unpin for Ordering
impl UnwindSafe for Ordering
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)