#[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
Response for POST /session/terminate-app and
POST /session/launch-app.
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: u64Wall-clock milliseconds spent inside the wait-for-foreground
loop. Zero when the caller passed wait_for_foreground_ms: 0
or when the runner does not implement the wait.
terminal_state: u8Final 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 the
caller opted out or the runner does not implement the wait.
terminated_cooperatively: boolSet 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: boolSet 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>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