Skip to main content

LivenessEvidence

Enum LivenessEvidence 

Source
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

§worker_id: String

Worker reservation id.

§pid: Option<u32>

Worker process id, when acknowledged.

§status: Status

Worker job status.

§reason: ActiveReason

Why the worker was judged active.

§task: Option<String>

Owning queue task id, when known.

§daemon_pid: Option<u32>

Daemon process id if a fresh daemon heartbeat also named this claim.

§

DaemonHeartbeat

A fresh daemon.json heartbeat claims this run.

Fields

§daemon_pid: Option<u32>

Daemon process id from daemon.json, when present.

§heartbeat_age_secs: Option<i64>

Age of the daemon heartbeat in seconds, when known.

§worker_id: Option<String>

Worker reservation id from daemon.json, absent on legacy drivers.

§worker_pid: Option<u32>

Worker process id, when the worker record could be read.

§worker_status: Option<Status>

Worker job status, when the worker record could be read.

§worker_lookup_error: Option<String>

Error reading the worker record, when a worker_id was present but unreadable.

§task: Option<String>

Owning queue task id, when known.

§

WorkerStoreUnreadable

Observing the worker store failed; all known runs are conservatively protected.

Fields

§error: String

Concrete observation error.

§

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.

Fields

§path: PathBuf

Path to driver.lock.

§

ProcessIdentity

The recorded driver_pid is alive and its process identity matches driver_started_at.

Fields

§pid: u32

Live driver process id.

§identity: String

Matched process start identity marker.

§

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

§path: PathBuf

Path to driver.lock.

§never_claimed: bool

Whether this run had a durable driver_claimed = false marker with no prior pass.

§

ProcessExited

The recorded driver_pid is no longer running.

Fields

§pid: u32

Exited driver process id.

§

ProcessIdentityMismatch

The recorded driver_pid now belongs to a different process.

Fields

§pid: u32

Reused process id.

§recorded: String

Identity marker originally recorded on the run.

§observed: String

Identity marker observed for the current process.

§

NoDriverPid

No driver_pid is recorded in run.json and no exit or lease proof applies.

§

ProcessStatusUnavailable

The OS could not report whether driver_pid is alive.

Fields

§pid: u32

Unqueryable process id.

§

MissingDriverIdentity

driver_pid is alive, but no driver_started_at identity was recorded.

Fields

§pid: u32

Live process id without a recorded identity.

§

UncomparableRecordedIdentity

driver_pid is alive, but the recorded driver_started_at is in a legacy non-comparable format.

Fields

§pid: u32

Live process id.

§recorded: String

Recorded non-comparable identity string.

§

ObservedIdentityUnavailable

driver_pid is alive, but the current process identity could not be read or compared.

Fields

§pid: u32

Live process id.

§recorded: String

Identity marker recorded on the run.

§observed: Option<String>

Non-comparable identity returned by the OS, if any.

§

DriverMetadataUnreadable

driver.json exists but could not be parsed.

Fields

§path: PathBuf

Path to driver.json.

§error: String

Parse error.

§

ExecutionLeaseUnreadable

driver.lock could not be opened or probed due to an unexpected I/O error.

Fields

§path: PathBuf

Path to driver.lock.

§error: String

I/O error.

Trait Implementations§

Source§

impl Clone for LivenessEvidence

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LivenessEvidence

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for LivenessEvidence

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for LivenessEvidence

Source§

impl PartialEq for LivenessEvidence

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LivenessEvidence

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T> ToCompactString for T
where T: Display,

Source§

impl<T> ToLine for T
where T: Display,

Source§

fn to_line(&self) -> Line<'_>

Converts the value to a Line.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSpan for T
where T: Display,

Source§

fn to_span(&self) -> Span<'_>

Converts the value to a Span.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToText for T
where T: Display,

Source§

fn to_text(&self) -> Text<'_>

Converts the value to a Text.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more