#[non_exhaustive]pub enum SessionState {
Healthy = 0,
Degraded = 1,
Cycling = 2,
Dead = 3,
}Expand description
Top-level surface for test authors. Mirrors Playwright’s page
deliberately — AI authoring quality is highest when names overlap
with corpus the AI was trained on.
Every method is async — no chaining shortcuts, no fluent builder pattern. One step, one await, one observable side effect.
State of a runner-side session guard, exposed to consumers via
Session::state. The runner’s X-Sim-Health response header
drives transitions.
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 = 0
All observed signals inside envelope.
Degraded = 1
At least one signal degraded (screenshot slow, /health stale).
Cycling = 2
Runner is mid-cycle (supervisor auto-restart in progress).
Dead = 3
Runner or a watched subprocess (SimRenderServer / xcodebuild) is gone.
Implementations§
Trait Implementations§
Source§impl Clone for SessionState
impl Clone for SessionState
Source§fn clone(&self) -> SessionState
fn clone(&self) -> SessionState
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 SessionState
Source§impl Debug for SessionState
impl Debug for SessionState
impl Eq for SessionState
Source§impl Hash for SessionState
impl Hash for SessionState
Source§impl PartialEq for SessionState
impl PartialEq for SessionState
impl StructuralPartialEq for SessionState
Auto Trait Implementations§
impl Freeze for SessionState
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionState
impl UnwindSafe for SessionState
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