Module mogwai::lock [−][src]
Expand description
Asynchronous locking mechanisms (re-exports).
Structs
A counter to synchronize multiple tasks at the same time.
Returned by Barrier::wait()
when all tasks have called it.
An RAII guard returned by the MutexGuard::map
and MappedMutexGuard::map
methods.
When this structure is dropped (falls out of scope), the lock will be unlocked.
An async mutex.
A futures-aware mutex.
A guard that releases the mutex when dropped.
An RAII guard returned by the lock
and try_lock
methods.
When this structure is dropped (falls out of scope), the lock will be
unlocked.
An owned guard that releases the mutex when dropped.
A future which resolves when the target mutex has been successfully acquired.
An async reader-writer lock.
A guard that releases the read lock when dropped.
A guard that releases the upgradable read lock when dropped.
A guard that releases the write lock when dropped.
A counter for limiting the number of concurrent operations.
A guard that releases the acquired permit.
An owned guard that releases the acquired permit.