pub struct HeldLock {
pub path: PathBuf,
pub kind: String,
pub recorded_pid: Option<u32>,
pub liveness: PidLiveness,
}Expand description
One lock file found on disk, parsed from its own body (lock.rs::lock_body’s format:
pid=<n>\nkind=<k>\nnote=...\n).
Fields§
§path: PathBufThe lock file’s own path – pass this to clear_lock to remove it.
kind: StringThe kind= field recorded in the lock body ("active", "ref", or one of
lock::container_lock_kind’s strings).
recorded_pid: Option<u32>The pid= field, if the body parsed cleanly.
liveness: PidLivenessBest-effort, advisory liveness of recorded_pid – see PidLiveness’s own doc.
Trait Implementations§
impl Eq for HeldLock
impl StructuralPartialEq for HeldLock
Auto Trait Implementations§
impl Freeze for HeldLock
impl RefUnwindSafe for HeldLock
impl Send for HeldLock
impl Sync for HeldLock
impl Unpin for HeldLock
impl UnsafeUnpin for HeldLock
impl UnwindSafe for HeldLock
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