pub enum MemSem {
Relaxed,
Acquire,
Release,
AcqRel,
}Expand description
Memory ordering semantics for atomic operations.
Variants§
Relaxed
No ordering constraint beyond atomicity.
Acquire
Acquire ordering: subsequent operations can’t be reordered before this one.
Release
Release ordering: prior operations can’t be reordered after this one.
AcqRel
Acquire + Release (default).
Auto Trait Implementations§
impl Freeze for MemSem
impl RefUnwindSafe for MemSem
impl Send for MemSem
impl Sync for MemSem
impl Unpin for MemSem
impl UnsafeUnpin for MemSem
impl UnwindSafe for MemSem
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