#[non_exhaustive]pub enum RunStatus {
Queued,
Running,
Completed,
Failed,
Killed,
Unknown,
}Expand description
Run-state machine for one jobs.execute invocation.
State transitions:
Queued → Running → Completed | Failed | Killed.
Queued ⇒ accepted but not started yet (waiting on the
concurrent-run cap or staleness check); the very first
jobs.progress push usually moves straight to Running.
#[non_exhaustive] so a future SPEC can add states like
Skipped (staleness gate) without a wire bump.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Queued
Accepted, not yet spawned.
Running
tokio::process::Command::spawn() returned, script is
running.
Completed
Exited with code 0 (or whatever the manifest declares as success).
Failed
Exited non-zero, or a Layer 2 skipped-result was published.
Killed
User-initiated kill via jobs.kill. Distinct from Failed
so the SPA can show “stopped by you” instead of “errored”.
Unknown
#492: serde-level forward-compat catch-all. #[non_exhaustive]
only affects Rust match exhaustiveness — serde still hard-fails
on an unknown variant STRING, so a newer peer’s new variant
used to make older readers reject the whole containing message.
Unknown decodes any unrecognised value; UIs render it neutrally.
Trait Implementations§
impl Copy for RunStatus
Source§impl<'de> Deserialize<'de> for RunStatus
impl<'de> Deserialize<'de> for RunStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for RunStatus
Source§impl JsonSchema for RunStatus
impl JsonSchema for RunStatus
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for RunStatus
Auto Trait Implementations§
impl Freeze for RunStatus
impl RefUnwindSafe for RunStatus
impl Send for RunStatus
impl Sync for RunStatus
impl Unpin for RunStatus
impl UnsafeUnpin for RunStatus
impl UnwindSafe for RunStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.