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

Function native_ax_available_sources

packages/server/src/api/routes.rs:3699–3716  ·  view source on GitHub ↗
(state: &AppState, udid: &str)

Source from the content-addressed store, hash-verified

3697}
3698
3699async fn native_ax_available_sources(state: &AppState, udid: &str) -> Vec<String> {
3700 match timeout(
3701 ACCESSIBILITY_SOURCE_DISCOVERY_TIMEOUT,
3702 inspector_session_for_state(state, udid),
3703 )
3704 .await
3705 {
3706 Ok(Ok(session)) => available_sources_with_native_ax(Some(&session)),
3707 Ok(Err(error)) => {
3708 tracing::debug!("Native AX source discovery found no inspector for {udid}: {error}");
3709 available_sources_with_native_ax(None)
3710 }
3711 Err(_) => {
3712 tracing::debug!("Native AX source discovery timed out for {udid}");
3713 available_sources_with_native_ax(None)
3714 }
3715 }
3716}
3717
3718async fn accessibility_point(
3719 State(state): State<AppState>,

Callers 1

Tested by

no test coverage detected