Module sync

Module sync 

Source
Expand description

Useful synchronization primitives.

Modules§

atomic
Atomic types

Structs§

Arc
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
Mutex
A mutual exclusion primitive useful for protecting shared data
MutexGuard
An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
Weak
Weak is a version of Arc that holds a non-owning reference to the managed allocation.
ExclusiveExperimental
Exclusive provides only mutable access, also referred to as exclusive access to the underlying value. It provides no immutable, or shared access to the underlying value.
UniqueArcExperimental
A uniquely owned Arc.

Enums§

TryLockError
An enumeration of possible errors associated with a TryLockResult which can occur while trying to acquire a lock, from the try_lock method on a Mutex or the try_read and try_write methods on an RwLock.

Type Aliases§

LockResult
TryLockResult
A type alias for the result of a nonblocking locking method.