pub enum FailureCode {
ElementNotFound,
NotVisible,
NotEnabled,
Ambiguous,
Timeout,
AssertionFailed,
AppNotRunning,
SimulatorNotBooted,
DriverError,
}Expand description
All failure codes smix surfaces back to the SDK / MCP / CLI (SCREAMING_SNAKE_CASE wire).
Variants§
ElementNotFound
Selector matched zero elements in the visible tree.
NotVisible
Element matched but failed the visibility filter.
NotEnabled
Element matched but enabled = false.
Ambiguous
Selector matched multiple elements (when uniqueness was required).
Timeout
Operation exceeded the implicit-wait budget.
AssertionFailed
expect assertion (e.g. toHaveText) did not hold.
AppNotRunning
Target app exited or never launched.
SimulatorNotBooted
Simulator device is not booted.
DriverError
Catch-all for runner / driver / IO failures.
Trait Implementations§
Source§impl Clone for FailureCode
impl Clone for FailureCode
Source§fn clone(&self) -> FailureCode
fn clone(&self) -> FailureCode
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 FailureCode
Source§impl Debug for FailureCode
impl Debug for FailureCode
Source§impl<'de> Deserialize<'de> for FailureCode
impl<'de> Deserialize<'de> for FailureCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FailureCode
Source§impl Hash for FailureCode
impl Hash for FailureCode
Source§impl PartialEq for FailureCode
impl PartialEq for FailureCode
Source§fn eq(&self, other: &FailureCode) -> bool
fn eq(&self, other: &FailureCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FailureCode
impl Serialize for FailureCode
impl StructuralPartialEq for FailureCode
Auto Trait Implementations§
impl Freeze for FailureCode
impl RefUnwindSafe for FailureCode
impl Send for FailureCode
impl Sync for FailureCode
impl Unpin for FailureCode
impl UnsafeUnpin for FailureCode
impl UnwindSafe for FailureCode
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