pub struct FileLock { /* private fields */ }Expand description
File-level lock for .aplan files. Creates a .aplan.lock sidecar that
prevents concurrent writes to the same planning file.
The lock is held for the duration of the write and released on drop.
Implementations§
Source§impl FileLock
impl FileLock
Trait 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