#[non_exhaustive]pub struct SessionAppLifecycleResponse {
pub ok: bool,
pub wall_ms: u64,
pub waited_ms: u64,
pub terminal_state: u8,
pub terminated_cooperatively: bool,
pub reached_interactive: bool,
pub interactive_named_ids: Vec<String>,
}Expand description
v1.0.8 §D1 — response for POST /session/terminate-app and
POST /session/launch-app. v1.0.11 §D3 — extended with the
observed terminal .state and the wall time spent waiting for
foreground.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ok: boolTrue on success.
wall_ms: u64Wall-clock milliseconds the terminate or launch took.
waited_ms: u64v1.0.11 §D3 — Wall-clock milliseconds spent inside the wait-
for-foreground loop. Zero when the caller passed
wait_for_foreground_ms: 0 or when the runner is pre-v1.0.11.
terminal_state: u8v1.0.11 §D3 — final observed XCUIApplication.state at the
moment the runner returned. Wire-encoded as the raw Int
value XCTest uses: 0 unknown, 1 notRunning, 2 runningBackgroundSuspended,
3 runningBackground, 4 runningForeground. Zero when
pre-v1.0.11 or when the caller opted out.
terminated_cooperatively: boolv1.0.11 §D5 — set when the runner observed cooperative
termination (XCUIApplication.terminate() observed
.notRunning before timeout). false on terminate-app when
the runner had to fall back to a hard signal.
Only meaningful on terminate-app responses; false on
launch-app.
reached_interactive: boolv1.0.15 Cluster C D1 — set on launch-app responses when the
interactive-probe (≥ minIdentifierCount non-empty ax-ids
outside the ignore list) fired inside wait_for_interactive_ms.
false when the caller didn’t set wait_for_interactive_ms
OR when polling timed out without observing the interactive
fingerprint.
interactive_named_ids: Vec<String>v1.0.15 Cluster C D1 — sample of up to 8 accessibilityIdentifier
values observed at the moment reached_interactive fired.
Non-normative; useful for consumers debugging “did my
interactive probe fire on the right screen”. Empty when
reached_interactive == false or the caller didn’t set
wait_for_interactive_ms.
Trait Implementations§
Source§impl Clone for SessionAppLifecycleResponse
impl Clone for SessionAppLifecycleResponse
Source§fn clone(&self) -> SessionAppLifecycleResponse
fn clone(&self) -> SessionAppLifecycleResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more