[][src]Struct wasmer_runtime::memory::Atomic

#[repr(transparent)]
pub struct Atomic<T> { /* fields omitted */ }

Methods

impl<T> Atomic<T> where
    T: IntCast, 
[src]

pub fn get_mut(&mut self) -> &mut <T as IntCast>::Public[src]

pub fn into_inner(self) -> <T as IntCast>::Public[src]

pub fn load(&self, order: Ordering) -> <T as IntCast>::Public[src]

pub fn store(&self, val: <T as IntCast>::Public, order: Ordering)[src]

pub fn swap(
    &self,
    val: <T as IntCast>::Public,
    order: Ordering
) -> <T as IntCast>::Public
[src]

pub fn compare_and_swap(
    &self,
    current: <T as IntCast>::Public,
    new: <T as IntCast>::Public,
    order: Ordering
) -> <T as IntCast>::Public
[src]

pub fn compare_exchange(
    &self,
    current: <T as IntCast>::Public,
    new: <T as IntCast>::Public,
    success: Ordering,
    failure: Ordering
) -> Result<<T as IntCast>::Public, <T as IntCast>::Public>
[src]

pub fn compare_exchange_weak(
    &self,
    current: <T as IntCast>::Public,
    new: <T as IntCast>::Public,
    success: Ordering,
    failure: Ordering
) -> Result<<T as IntCast>::Public, <T as IntCast>::Public>
[src]

pub fn fetch_add(
    &self,
    val: <T as IntCast>::Public,
    order: Ordering
) -> <T as IntCast>::Public
[src]

pub fn fetch_sub(
    &self,
    val: <T as IntCast>::Public,
    order: Ordering
) -> <T as IntCast>::Public
[src]

pub fn fetch_and(
    &self,
    val: <T as IntCast>::Public,
    order: Ordering
) -> <T as IntCast>::Public
[src]

pub fn fetch_or(
    &self,
    val: <T as IntCast>::Public,
    order: Ordering
) -> <T as IntCast>::Public
[src]

pub fn fetch_xor(
    &self,
    val: <T as IntCast>::Public,
    order: Ordering
) -> <T as IntCast>::Public
[src]

Trait Implementations

impl<T> Default for Atomic<T> where
    T: IntCast + Default
[src]

impl<T> RefUnwindSafe for Atomic<T>[src]

impl<T> Sync for Atomic<T>[src]

Auto Trait Implementations

impl<T> Send for Atomic<T> where
    T: Send

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T