pub struct ProjectLock { /* private fields */ }Implementations§
Source§impl ProjectLock
impl ProjectLock
Sourcepub fn acquire(
paths: &ProjectPaths,
command: impl Into<String>,
run_id: Option<RunId>,
) -> KimetsuResult<Self>
pub fn acquire( paths: &ProjectPaths, command: impl Into<String>, run_id: Option<RunId>, ) -> KimetsuResult<Self>
Acquire the writer lock, blocking until it is free or the default timeout elapses. Stale locks (dead PID, corrupt payload) are reclaimed automatically.
pub fn release(self) -> KimetsuResult<()>
Trait Implementations§
Source§impl Debug for ProjectLock
impl Debug for ProjectLock
Source§impl Drop for ProjectLock
impl Drop for ProjectLock
Auto Trait Implementations§
impl Freeze for ProjectLock
impl RefUnwindSafe for ProjectLock
impl Send for ProjectLock
impl Sync for ProjectLock
impl Unpin for ProjectLock
impl UnsafeUnpin for ProjectLock
impl UnwindSafe for ProjectLock
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