Expand description
TODO Crate level documentation
Structs
A RAII implementation of a scoped lock for locks from a LockableHashMap or LockableLruCache. When this instance is dropped (falls out of scope), the lock will be unlocked.
A threadsafe hash map where individual keys can be locked/unlocked, even if there is no entry for this key in the map. It initially considers all keys as “unlocked”, but they can be locked and if a second thread tries to acquire a lock for the same key, they will have to wait.
Enums
Errors that can be thrown by LockableLruCache::try_lock and LockableHashMap::try_lock.
Type Definitions
A non-owning guard holding a lock for an entry in a LockableHashMap. This guard is created via LockableHashMap::blocking_lock, LockableHashMap::async_lock or LockableHashMap::try_lock and its lifetime is bound to the lifetime of the LockableHashMap.
A owning guard holding a lock for an entry in a LockableHashMap. This guard is created via LockableHashMap::blocking_lock_owned, LockableHashMap::async_lock_owned or LockableHashMap::try_lock_owned and its lifetime is bound to the lifetime of the LockableHashMap within its Arc.