pub struct StorageLock { /* private fields */ }Available on crate feature
std only.Expand description
A cross-process advisory lock on a stable lock-file path.
Cooperating processes must lock the same path. The file is intentionally retained after the guard is dropped; the operating system releases the advisory lock when its handle closes or the owning process terminates.
Implementations§
Trait Implementations§
Source§impl Debug for StorageLock
impl Debug for StorageLock
Source§impl Drop for StorageLock
impl Drop for StorageLock
Auto Trait Implementations§
impl Forget for StorageLock
impl Freeze for StorageLockwhere
I32NotAllOnes: Freeze,
impl Move for StorageLock
impl RefUnwindSafe for StorageLockwhere
I32NotAllOnes: RefUnwindSafe,
impl Send for StorageLockwhere
I32NotAllOnes: Send,
impl Sync for StorageLockwhere
I32NotAllOnes: Sync,
impl Unpin for StorageLockwhere
I32NotAllOnes: Unpin,
impl UnsafeUnpin for StorageLockwhere
I32NotAllOnes: UnsafeUnpin,
impl UnwindSafe for StorageLockwhere
I32NotAllOnes: UnwindSafe,
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