Module concurrency_traits::mutex [−][src]
Expand description
Generic mutex that only needs lock and unlock functionality to be auto implemented.
Structs
CustomMutex | A Mutex based on a given |
CustomMutexGuard | A guard for a |
RawAtomicMutex | The raw portion of |
RawCustomAsyncMutex | A converter for turning a |
RawFullAsyncMutex | The raw portion of |
RawParkMutex | The raw portion of |
RawSpinLock | The raw portion of |
Enums
RawCustomAsyncMutexMessage | The message used for |
Traits
AsyncMutex | A generic async mutex trait |
AsyncMutexSized | The functions for |
AsyncTimeoutMutex | An async mutex that locking can timeout on. |
AsyncTimeoutMutexSized | The functions for |
Mutex | A Generic Mutex trait |
MutexSized | The functions for |
RawAsyncMutex | A raw async mutex that hold no data but the lock itself. |
RawAsyncTimeoutMutex | A raw async mutex that can be timed out and holds no data. |
RawMutex | A raw mutex that hold no data but the lock itself. |
RawTimeoutMutex | A raw mutex that can be timed out and holds no data. |
RawTryMutex | A raw mutex that can be tried and holds no data. |
TimeoutMutex | A mutex that can timeout for locking |
TimeoutMutexSized | The functions for |
TryMutex | A non-blocking mutex with try functions. |
TryMutexSized | The functions for |
Type Definitions
AtomicMutex | A mutex based on an |
FullAsyncMutex | A mutex that can only be accessed through async await or try operations. |
ParkMutex | A mutex that relies on parking the thread that locks it. Uses |
ParkMutexStd | A |
RawParkMutexStd | A |
SpinLock | A lock that spins while being locked. Should only be locked for very short operations. |
SpinLockStd | A |