pub enum StaleLockDecision {
KeepExisting,
Reclaim,
}Expand description
What a caller weighing whether to reclaim a stale lock/discovery file
should do, given a ProcessLiveness.
Variants§
KeepExisting
The recorded holder might still be there — confirmed alive, or unconfirmed and therefore assumed alive out of caution. Don’t touch the existing file.
Reclaim
The recorded holder is confirmed gone (dead pid, or the pid now belongs to someone else) — safe to overwrite.
Trait Implementations§
Source§impl Clone for StaleLockDecision
impl Clone for StaleLockDecision
impl Copy for StaleLockDecision
Source§impl Debug for StaleLockDecision
impl Debug for StaleLockDecision
impl Eq for StaleLockDecision
Source§impl PartialEq for StaleLockDecision
impl PartialEq for StaleLockDecision
impl StructuralPartialEq for StaleLockDecision
Auto Trait Implementations§
impl Forget for StaleLockDecision
impl Freeze for StaleLockDecision
impl Move for StaleLockDecision
impl RefUnwindSafe for StaleLockDecision
impl Send for StaleLockDecision
impl Sync for StaleLockDecision
impl Unpin for StaleLockDecision
impl UnsafeUnpin for StaleLockDecision
impl UnwindSafe for StaleLockDecision
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