Expand description
Provides an API over “managed” lock
Structs§
- Lock
Manager - A lock manager to create “managed” locks.
- Lock
Manager Handle - Handle to the lock manager background thread.
- Managed
Lock - A Lock instance with automatic lease refresh and lock revocation when dropped.
- Managed
Lock Guard - Acquired only via
ManagedLock::scope
orManagedLock::scope_with
. - Managed
Lock Revoke Notify - Used to notify when a lock is revoked.
Enums§
- Lock
Error - Error that can occur when using a managed lock.
- Locking
Error - Error that can occur when trying to lock a key.
- TryLock
Error - Error that can occur when trying to lock a key.
Functions§
- spawn_
lock_ manager - Creates a lock manager to create “managed” locks.
- spawn_
lock_ manager_ with_ lease_ factory - Creates a lock manager to create “managed” locks.