Structs

A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.

A counter to synchronize multiple tasks at the same time.

Returned by Barrier::wait() when all tasks have called it.

A Condition Variable

An async mutex.

A guard that releases the mutex when dropped.

An owned guard that releases the mutex when dropped.

An async reader-writer lock.

A guard that releases the read lock when dropped.

A guard that releases the upgradable read lock when dropped.

A guard that releases the write lock when dropped.

Weak is a version of Arc that holds a non-owning reference to the managed allocation. The allocation is accessed by calling upgrade on the Weak pointer, which returns an Option<Arc<T>>.