Struct desync::desync::Desync [] [src]

pub struct Desync<T: Send> { /* fields omitted */ }

A data storage structure used to govern synchronous and asynchronous access to an underlying object.

Methods

impl<T: 'static + Send> Desync<T>
[src]

[src]

Creates a new Desync object

[src]

Performs an operation asynchronously on this item. This function will return immediately and the job will happen on a separate thread at some time in the future (generally fairly soon).

Jobs are always performed in the order that they are queued and are always performed synchronously with respect to this object.

[src]

Performs an operation synchronously on this item. This will be queued with any other jobs that this item may be performing, and this function will not return until the job is complete and the result is available.

[src]

Performs an operation asynchronously on the contents of this item, returning the result via a future.

[src]

After the pending operations for this item are performed, waits for the supplied future to complete and then calls the specified function

Trait Implementations

impl<T: Send> Send for Desync<T>
[src]

impl<T: Send> Sync for Desync<T>
[src]

impl<T: Send> Drop for Desync<T>
[src]

[src]

Executes the destructor for this type. Read more