pub struct MmapAtomicI16 { /* private fields */ }Expand description
Atomic wrapper for memory-mapped structs
Implementations§
Source§impl MmapAtomicI16
impl MmapAtomicI16
pub fn new(value: i16) -> Self
pub fn load(&self, ordering: Ordering) -> i16
pub fn store(&self, value: i16, ordering: Ordering)
pub fn fetch_add(&self, value: i16, ordering: Ordering) -> i16
pub fn fetch_sub(&self, value: i16, ordering: Ordering) -> i16
Sourcepub fn compare_exchange(
&self,
current: i16,
new: i16,
success: Ordering,
failure: Ordering,
) -> Result<i16, i16>
pub fn compare_exchange( &self, current: i16, new: i16, success: Ordering, failure: Ordering, ) -> Result<i16, i16>
pub fn swap(&self, value: i16, ordering: Ordering) -> i16
pub fn fetch_max(&self, value: i16, ordering: Ordering) -> i16
pub fn fetch_min(&self, value: i16, ordering: Ordering) -> i16
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MmapAtomicI16
impl RefUnwindSafe for MmapAtomicI16
impl Send for MmapAtomicI16
impl Sync for MmapAtomicI16
impl Unpin for MmapAtomicI16
impl UnwindSafe for MmapAtomicI16
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