#[non_exhaustive]pub enum SimHealthWireState {
Healthy,
Degraded,
Cycling,
Dead,
}Expand description
v1.0.4 §D7 — Session state exposed to SDK consumers via the
X-Sim-Health response header on every runner response.
Additive to v1.0.3 sessions — consumers that ignore the header get
v1.0.3 behavior; consumers that read it get Degraded / Dead /
Cycling transitions without polling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Healthy
All watched signals inside envelope.
Degraded
At least one signal degraded (screenshot p95 slow, /health stale, etc.).
Cycling
Runner is mid-cycle (supervisor auto-restart in progress).
Callers should back off until the next Healthy transition.
Dead
Runner or a watched subprocess (SimRenderServer / xcodebuild) is gone. Callers should bail.
Implementations§
Source§impl SimHealthWireState
impl SimHealthWireState
Sourcepub fn from_header(value: &str) -> Option<SimHealthWireState>
pub fn from_header(value: &str) -> Option<SimHealthWireState>
Parse a case-insensitive wire string; returns None on
unknown values so unrecognized future states don’t panic.
Trait Implementations§
Source§impl Clone for SimHealthWireState
impl Clone for SimHealthWireState
Source§fn clone(&self) -> SimHealthWireState
fn clone(&self) -> SimHealthWireState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SimHealthWireState
Source§impl Debug for SimHealthWireState
impl Debug for SimHealthWireState
Source§impl<'de> Deserialize<'de> for SimHealthWireState
impl<'de> Deserialize<'de> for SimHealthWireState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimHealthWireState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimHealthWireState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SimHealthWireState
Source§impl Hash for SimHealthWireState
impl Hash for SimHealthWireState
Source§impl PartialEq for SimHealthWireState
impl PartialEq for SimHealthWireState
Source§impl Serialize for SimHealthWireState
impl Serialize for SimHealthWireState
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SimHealthWireState
Auto Trait Implementations§
impl Freeze for SimHealthWireState
impl RefUnwindSafe for SimHealthWireState
impl Send for SimHealthWireState
impl Sync for SimHealthWireState
impl Unpin for SimHealthWireState
impl UnsafeUnpin for SimHealthWireState
impl UnwindSafe for SimHealthWireState
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