Struct abox::AtomicBox [] [src]

pub struct AtomicBox<T: Sized> { /* fields omitted */ }

AtomicBox is a safe wrapper around AtomicPtr You can safely swap values using the replace_with method

Methods

impl<T: Sized> AtomicBox<T>
[src]

[src]

Allocates a new AtomicBox containing the given value

[src]

Atomically replace the inner value with the result of applying the given closure to the current value, this closure might be executed multiple times if the value was swapped concurrently

Trait Implementations

impl<T: Debug + Sized> Debug for AtomicBox<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Sized + PartialEq> PartialEq for AtomicBox<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<T: Sized> Clone for AtomicBox<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Sized> Deref for AtomicBox<T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<T: Sized> Drop for AtomicBox<T>
[src]

[src]

Executes the destructor for this type. Read more

impl<T: Sized> Sync for AtomicBox<T>
[src]

impl<T: Sized> Send for AtomicBox<T>
[src]