Struct atomic_ref2::AtomicOptionRef[][src]

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

An atomic reference that may be updated atomically.

Methods

impl<T> AtomicOptionRef<T>
[src]

Creates a new atomic reference with None initial value.

Creates a new atomic reference from the given initial value.

Returns true if the optional reference has Some value.

Loads and returns a reference to the value or None if the value is not set.

Stores the value.

Swaps the value, returning the previous value.

Trait Implementations

impl<T> Default for AtomicOptionRef<T>
[src]

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

impl<T> Drop for AtomicOptionRef<T>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<T> Send for AtomicOptionRef<T>

impl<T> Sync for AtomicOptionRef<T>