Skip to main content

SessionAppLifecycleResponse

Struct SessionAppLifecycleResponse 

Source
#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§ok: bool

True on success.

§wall_ms: u64

Wall-clock milliseconds the terminate or launch took.

§waited_ms: u64

v1.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: u8

v1.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: bool

v1.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: bool

v1.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

Source§

fn clone(&self) -> SessionAppLifecycleResponse

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SessionAppLifecycleResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SessionAppLifecycleResponse

Source§

fn default() -> SessionAppLifecycleResponse

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SessionAppLifecycleResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for SessionAppLifecycleResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.