pub struct FileLock { /* private fields */ }Expand description
Advisory file lock (flock) for concurrent access.
Prevents concurrent mars sync from corrupting state.
The lock is held start-to-end — acquired before fetching and held through completion.
Dropping the FileLock closes the fd, which releases the advisory lock.
Implementations§
Auto Trait Implementations§
impl Freeze for FileLock
impl RefUnwindSafe for FileLock
impl Send for FileLock
impl Sync for FileLock
impl Unpin for FileLock
impl UnsafeUnpin for FileLock
impl UnwindSafe 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