Struct atomic_ref2::AtomicRef[][src]

pub struct AtomicRef<T> { /* fields omitted */ }

An atomic reference that may be updated atomically.

Methods

impl<T> AtomicRef<T>
[src]

Creates a new atomic reference with a default initial value.

Creates a new atomic reference from the given initial value.

Loads and returns a reference to the value.

Stores the value.

Swaps the value, returning the previous value.

Trait Implementations

impl<T> Default for AtomicRef<T> where
    T: Default
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<T> Send for AtomicRef<T>

impl<T> Sync for AtomicRef<T>