pub struct StoreLock { /* private fields */ }Expand description
Cross-process advisory lock held through an open file handle.
Lock files persist after release. Unlinking an advisory lock file can split
contenders across the unlinked inode and a newly-created inode, allowing
two processes to both believe they hold the same lock. Only
[Store::sweep_stale_key_locks] unlinks one, and only while holding it;
every acquisition then checks that the path still names the file it
locked, and starts over when it does not.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StoreLock
impl RefUnwindSafe for StoreLock
impl Send for StoreLock
impl Sync for StoreLock
impl Unpin for StoreLock
impl UnsafeUnpin for StoreLock
impl UnwindSafe for StoreLock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more