pub enum LivenessEvidence {
Show 17 variants
WorkerClaim {
worker_id: String,
pid: Option<u32>,
status: Status,
reason: ActiveReason,
task: Option<String>,
daemon_pid: Option<u32>,
},
DaemonHeartbeat {
daemon_pid: Option<u32>,
heartbeat_age_secs: Option<i64>,
worker_id: Option<String>,
worker_pid: Option<u32>,
worker_status: Option<Status>,
worker_lookup_error: Option<String>,
task: Option<String>,
},
WorkerStoreUnreadable {
error: String,
},
DaemonClaimed,
ExecutionLeaseHeld {
path: PathBuf,
},
ProcessIdentity {
pid: u32,
identity: String,
},
DriverExited,
ExecutionLeaseFree {
path: PathBuf,
never_claimed: bool,
},
ProcessExited {
pid: u32,
},
ProcessIdentityMismatch {
pid: u32,
recorded: String,
observed: String,
},
NoDriverPid,
ProcessStatusUnavailable {
pid: u32,
},
MissingDriverIdentity {
pid: u32,
},
UncomparableRecordedIdentity {
pid: u32,
recorded: String,
},
ObservedIdentityUnavailable {
pid: u32,
recorded: String,
observed: Option<String>,
},
DriverMetadataUnreadable {
path: PathBuf,
error: String,
},
ExecutionLeaseUnreadable {
path: PathBuf,
error: String,
},
}Expand description
Concrete observation that decided a Liveness verdict.
Variants§
WorkerClaim
An active detached task worker reservation claims this run.
Fields
reason: ActiveReasonWhy the worker was judged active.
DaemonHeartbeat
A fresh daemon.json heartbeat claims this run.
Fields
WorkerStoreUnreadable
Observing the worker store failed; all known runs are conservatively protected.
DaemonClaimed
Caller supplied a boolean daemon claim without structured claim metadata.
ExecutionLeaseHeld
The run’s execution lease (driver.lock) is currently held by another process.
ProcessIdentity
The recorded driver_pid is alive and its process identity matches driver_started_at.
DriverExited
run.json records driver_exited = true and no active daemon or worker claim exists.
ExecutionLeaseFree
The run’s execution lease (driver.lock) is unlocked for a matching pass or never-claimed record.
Fields
ProcessExited
The recorded driver_pid is no longer running.
ProcessIdentityMismatch
The recorded driver_pid now belongs to a different process.
Fields
NoDriverPid
No driver_pid is recorded in run.json and no exit or lease proof applies.
The OS could not report whether driver_pid is alive.
MissingDriverIdentity
driver_pid is alive, but no driver_started_at identity was recorded.
UncomparableRecordedIdentity
driver_pid is alive, but the recorded driver_started_at is in a legacy non-comparable format.
driver_pid is alive, but the current process identity could not be read or compared.
DriverMetadataUnreadable
driver.json exists but could not be parsed.
ExecutionLeaseUnreadable
driver.lock could not be opened or probed due to an unexpected I/O error.
Trait Implementations§
Source§impl Clone for LivenessEvidence
impl Clone for LivenessEvidence
Source§impl Debug for LivenessEvidence
impl Debug for LivenessEvidence
Source§impl Display for LivenessEvidence
impl Display for LivenessEvidence
impl Eq for LivenessEvidence
Source§impl PartialEq for LivenessEvidence
impl PartialEq for LivenessEvidence
impl StructuralPartialEq for LivenessEvidence
Auto Trait Implementations§
impl Forget for LivenessEvidence
impl Freeze for LivenessEvidence
impl Move for LivenessEvidence
impl RefUnwindSafe for LivenessEvidence
impl Send for LivenessEvidencewhere
RawVecInner: Send,
impl Sync for LivenessEvidencewhere
RawVecInner: Sync,
impl Unpin for LivenessEvidence
impl UnsafeUnpin for LivenessEvidence
impl UnwindSafe for LivenessEvidencewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more