Module sync Copy item path Source atomic Atomic types Arc A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically
Reference Counted’. Mutex 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. OnceLock std
A synchronization primitive which can nominally be written to only once. Weak Weak
is a version of Arc
that holds a non-owning reference to the
managed allocation.Exclusive Experimental 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.UniqueArc Experimental A uniquely owned Arc
.