#[non_exhaustive]pub enum ProbeDegradedReason {
SkippedUntrusted,
SkippedSandboxUnavailable,
ProbeFailed,
Unknown(String),
}Expand description
Why a workspace status probe produced no fresh reading.
Open: a new reason is additive evolution, and a client MUST render an unknown value as an unknown-but-present reason rather than rejecting the row.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SkippedUntrusted
The workspace is not trusted, so the probe never ran.
No enforceable sandbox (or no host-trusted program), so the probe failed closed without running.
ProbeFailed
The sandboxed probe ran but exited non-zero.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Source§impl ProbeDegradedReason
impl ProbeDegradedReason
Sourcepub fn from_wire(word: &str) -> Self
pub fn from_wire(word: &str) -> Self
Parse one wire word without a serde round-trip: the picker renders every
row through this instead of serde_json::from_value, so an unknown word
costs a match, not a parse. Total — an unknown word becomes Unknown,
like the Deserialize impl below, which delegates here.