Skip to main content

Reply

Struct Reply 

Source
pub struct Reply {
    pub id_evidence: Box<[IdEvidence]>,
    pub ok: bool,
    pub error: Option<String>,
    pub retryable: bool,
    pub png_base64: Option<String>,
    pub screenshot_unsupported: bool,
    pub capture_revision: Option<u32>,
    pub fast_animations: Option<bool>,
    pub capture_pending: bool,
    pub data: Option<Value>,
    pub memory_sample: Option<Box<MemorySample>>,
    pub main_thread_stalled: bool,
}

Fields§

§id_evidence: Box<[IdEvidence]>§ok: bool§error: Option<String>§retryable: bool

Set on failures that may succeed after a wait (element not found yet, assert pending).

§png_base64: Option<String>§screenshot_unsupported: bool§capture_revision: Option<u32>

Acknowledged render checkpoint. Absent when talking to an older app or when freshness can only be established by an in-process snapshot.

§fast_animations: Option<bool>

App-side policy acknowledgment. Older apps omit it; runners must retain animation pauses until the app confirms that fast motion is active.

§capture_pending: bool

Internal retry cadence: frame checkpoints can complete on the next display tick.

§data: Option<Value>

A step’s structured answer (tests, run_tests, memory_usage).

§memory_sample: Option<Box<MemorySample>>

Unsolicited telemetry on a connection that explicitly enabled memory_watch.

§main_thread_stalled: bool

The step never ran: the app’s main thread did not pick it up within the engine’s budget. Every later step would wait the full budget and fail the same way, so a runner abandons the flow on this rather than on the error text. Older apps omit it.

Implementations§

Source§

impl Reply

Source

pub fn ok() -> Reply

Source

pub fn fail(msg: impl Into<String>, retryable: bool) -> Reply

Trait Implementations§

Source§

impl Debug for Reply

Source§

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

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

impl Default for Reply

Source§

fn default() -> Reply

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

impl<'de> Deserialize<'de> for Reply

Source§

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

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

impl PartialEq for Reply

Source§

fn eq(&self, other: &Reply) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Reply

Source§

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
Source§

impl StructuralPartialEq for Reply

Auto Trait Implementations§

§

impl Forget for Reply

§

impl Freeze for Reply

§

impl RefUnwindSafe for Reply

§

impl Send for Reply

§

impl Sync for Reply

§

impl Unpin for Reply

§

impl UnsafeUnpin for Reply

§

impl UnwindSafe for Reply

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> AnyEq for T
where T: Any + PartialEq,

Source§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

Source§

fn as_any(&self) -> &(dyn Any + 'static)

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.