pub trait AtomicValue {
    type Inner;

    // Required methods
    fn get(&self) -> Self::Inner;
    fn set(&self, value: Self::Inner);
}
Expand description

Trait of values that can be loaded / stored with relaxed operations.

Required Associated Types§

Required Methods§

source

fn get(&self) -> Self::Inner

source

fn set(&self, value: Self::Inner)

Implementations on Foreign Types§

source§

impl AtomicValue for AtomicUsize

§

type Inner = usize

source§

fn get(&self) -> Self::Inner

source§

fn set(&self, value: Self::Inner)

source§

impl AtomicValue for AtomicU32

§

type Inner = u32

source§

fn get(&self) -> Self::Inner

source§

fn set(&self, value: Self::Inner)

source§

impl AtomicValue for AtomicU16

§

type Inner = u16

source§

fn get(&self) -> Self::Inner

source§

fn set(&self, value: Self::Inner)

source§

impl AtomicValue for AtomicI64

§

type Inner = i64

source§

fn get(&self) -> Self::Inner

source§

fn set(&self, value: Self::Inner)

source§

impl AtomicValue for AtomicBool

§

type Inner = bool

source§

fn get(&self) -> Self::Inner

source§

fn set(&self, value: Self::Inner)

source§

impl AtomicValue for AtomicU64

§

type Inner = u64

source§

fn get(&self) -> Self::Inner

source§

fn set(&self, value: Self::Inner)

source§

impl AtomicValue for AtomicI32

§

type Inner = i32

source§

fn get(&self) -> Self::Inner

source§

fn set(&self, value: Self::Inner)

source§

impl AtomicValue for AtomicI16

§

type Inner = i16

source§

fn get(&self) -> Self::Inner

source§

fn set(&self, value: Self::Inner)

source§

impl AtomicValue for AtomicU8

§

type Inner = u8

source§

fn get(&self) -> Self::Inner

source§

fn set(&self, value: Self::Inner)

source§

impl AtomicValue for AtomicI8

§

type Inner = i8

source§

fn get(&self) -> Self::Inner

source§

fn set(&self, value: Self::Inner)

Implementors§