pub enum Liveness {
Alive,
Stale,
}Expand description
Outcome of probing whether a recorded lock owner is still alive.
Kept as a distinct type (rather than a bare bool) so callers can treat
Unknown conservatively — an unprobeable owner is not silently reclaimed.
Variants§
Alive
The recorded owner is alive and its start token matches: the lock is held.
Stale
The recorded owner is gone (pid dead) or was replaced (pid reused): the lock is stale and may be reclaimed.
Trait Implementations§
impl Copy for Liveness
impl Eq for Liveness
impl StructuralPartialEq for Liveness
Auto Trait Implementations§
impl Freeze for Liveness
impl RefUnwindSafe for Liveness
impl Send for Liveness
impl Sync for Liveness
impl Unpin for Liveness
impl UnsafeUnpin for Liveness
impl UnwindSafe for Liveness
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