Expand description
Feature-agnostic synchronization primitives
In async mode, re-exports tokio::sync types. In sync mode, re-exports parking_lot types.
Modulesยง
- async_
impl ๐ - Wrappers around
tokio::synclock types, where necessary.
Structsยง
- Mutex ๐
- An asynchronous
Mutex-like type. - Mutex
Guard ๐ - A handle to a held
Mutex. The guard can be held across any.awaitpoint as it isSend. - Owned
RwLock ๐Read Guard - Owned RAII structure used to release the shared read access of a lock when dropped.
- Owned
RwLock ๐Write Guard - Owned RAII structure used to release the exclusive write access of a lock when dropped.
- RwLock ๐
- An asynchronous reader-writer lock.
- RwLock
Read ๐Guard - RAII structure used to release the shared read access of a lock when dropped.
- RwLock
Write ๐Guard - RAII structure used to release the exclusive write access of a lock when dropped.
Enumsยง
- RwLock
Either ๐Guard - Either an owned read guard or a borrowed write guard on an
OwnedRwLock.