Expand description
An asynchronous mutual exclusion lock.
See the documentation on the Mutex type for details.
Structs§
- Lock
- A future returned by the
Mutex::lockmethod. - Mutex
- An asynchronous mutual exclusion lock for protecting shared data.
- Mutex
Guard - An RAII implementation of a “scoped lock” of a
Mutex. When this structure is dropped (falls out of scope), the lock will be unlocked. - Owned
Mutex Guard alloc - An RAII implementation of a “scoped lock” of a
Mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.