pub struct FileLock(/* private fields */);Expand description
Nonblocking exclusive sidecar lock; drop releases it. All cooperating writers must lock the same path before checking and replacing data. OS files: across processes (Windows: an exclusive handle, Linux: flock); a mount without OS files: inside this process.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FileLock
impl !UnwindSafe for FileLock
impl Forget for FileLock
impl Freeze for FileLock
impl Send for FileLock
impl Sync for FileLock
impl Unpin for FileLock
impl UnsafeUnpin for FileLock
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