Expand description
One-shot lock variants that do not implement Sync.
These one-shot locks not implement Sync, which permits slightly more efficient
implementations.
For variants that do implement Sync, see the sync module.
Structs§
- RawOne
Shot Mutex - A one-shot mutex that panics instead of (dead)locking on contention.
- RawOne
Shot RwLock - A one-shot readers-writer lock that panics instead of (dead)locking on contention.
Type Aliases§
- OneShot
Mutex - A
lock_api::Mutexbased onRawOneShotMutex. - OneShot
Mutex Guard - A
lock_api::MutexGuardbased onRawOneShotMutex. - OneShot
RwLock - A
lock_api::RwLockbased onRawOneShotRwLock. - OneShot
RwLock Read Guard - A
lock_api::RwLockReadGuardbased onRawOneShotRwLock. - OneShot
RwLock Upgradable Read Guard - A
lock_api::RwLockUpgradableReadGuardbased onRawOneShotRwLock. - OneShot
RwLock Write Guard - A
lock_api::RwLockWriteGuardbased onRawOneShotRwLock.