Expand description
Futures-powered synchronization primitives.
This module is only available when the std or alloc feature of this
library is activated, and it is activated by default.
Structsยง
- BiLock
- A type of futures-powered synchronization primitive which is a mutex between two possible owners.
- BiLock
Acquire - Future returned by
BiLock::lockwhich will resolve when the lock is acquired. - BiLock
Guard - Returned RAII guard from the
poll_lockmethod. - Mapped
Mutex Guard - An RAII guard returned by the
MutexGuard::mapandMappedMutexGuard::mapmethods. When this structure is dropped (falls out of scope), the lock will be unlocked. - Mutex
- A futures-aware mutex.
- Mutex
Guard - An RAII guard returned by the
lockandtry_lockmethods. When this structure is dropped (falls out of scope), the lock will be unlocked. - Mutex
Lock Future - A future which resolves when the target mutex has been successfully acquired.
- Owned
Mutex Guard - An RAII guard returned by the
lock_ownedandtry_lock_ownedmethods. When this structure is dropped (falls out of scope), the lock will be unlocked. - Owned
Mutex Lock Future - A future which resolves when the target mutex has been successfully acquired, owned version.
- Reunite
Error - Error indicating two
BiLock<T>s were not two halves of a whole, and thus could not bereunited.