MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / boot_simulator

Function boot_simulator

packages/server/src/api/routes.rs:2180–2190  ·  view source on GitHub ↗
(
    State(state): State<AppState>,
    Path(udid): Path<String>,
)

Source from the content-addressed store, hash-verified

2178}
2179
2180async fn boot_simulator(
2181 State(state): State<AppState>,
2182 Path(udid): Path<String>,
2183) -> Result<Json<Value>, AppError> {
2184 if android::is_android_id(&udid) {
2185 boot_android_device(state.clone(), udid.clone()).await?;
2186 return android_simulator_payload(state, udid).await;
2187 }
2188 boot_ios_device(state.clone(), udid.clone()).await?;
2189 simulator_payload(state, udid).await
2190}
2191
2192async fn shutdown_simulator(
2193 State(state): State<AppState>,

Callers

nothing calls this directly

Calls 6

is_android_idFunction · 0.85
boot_android_deviceFunction · 0.85
boot_ios_deviceFunction · 0.85
simulator_payloadFunction · 0.85
cloneMethod · 0.65

Tested by

no test coverage detected