Module lock
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
-
MappedMutexGuard
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.
-
MutexGuard
An RAII guard returned by the
lockandtry_lockmethods. When this structure is dropped (falls out of scope), the lock will be unlocked. - MutexLockFuture A future which resolves when the target mutex has been successfully acquired.
-
OwnedMutexGuard
An RAII guard returned by the
lock_ownedandtry_lock_ownedmethods. When this structure is dropped (falls out of scope), the lock will be unlocked. - OwnedMutexLockFuture A future which resolves when the target mutex has been successfully acquired, owned version.