pub enum RunnerTransportError {
FetchFailed {
endpoint: String,
source: Error,
},
NonSuccessStatus {
endpoint: String,
status: u16,
body: String,
},
NonJsonBody {
endpoint: String,
source: Error,
},
MalformedBody {
endpoint: String,
detail: String,
},
Unreachable {
endpoint: String,
message: String,
},
AppUnavailable {
endpoint: String,
target: Option<String>,
reason: Option<String>,
},
}Expand description
Transport-level failure (network, non-2xx, malformed body). Mirrors
TS RunnerTransportError 1:1.
Variants§
FetchFailed
NonSuccessStatus
NonJsonBody
MalformedBody
Unreachable
v0.2.1 — gol-611-v0.2.1 §Phase B. The runner returned
{"ok":false,"error":"snapshot_unavailable"} (or the enriched
v0.2.1 body with target/reason fields). This is not a network
failure — it means XCUITest could not snapshot the app the client
asked about. Callers that see this after all retries can surface
an AI-readable hint about foreground state.
Trait Implementations§
Source§impl Debug for RunnerTransportError
impl Debug for RunnerTransportError
Source§impl Display for RunnerTransportError
impl Display for RunnerTransportError
Source§impl Error for RunnerTransportError
impl Error for RunnerTransportError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for RunnerTransportError
impl !UnwindSafe for RunnerTransportError
impl Freeze for RunnerTransportError
impl Send for RunnerTransportError
impl Sync for RunnerTransportError
impl Unpin for RunnerTransportError
impl UnsafeUnpin for RunnerTransportError
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