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

Function inspector_session_for_process

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

Source from the content-addressed store, hash-verified

3902}
3903
3904async fn inspector_session_for_process(
3905 state: &AppState,
3906 udid: &str,
3907 process_identifier: i64,
3908) -> Result<InspectorSession, String> {
3909 let connected_error =
3910 match connected_inspector_session(state, udid, Some(process_identifier)).await {
3911 Ok(session) => return Ok(session),
3912 Err(error) => error,
3913 };
3914
3915 match inspector_session(udid, Some(process_identifier)).await {
3916 Ok(session) => Ok(session),
3917 Err(tcp_error) => Err(format!("{connected_error} {tcp_error}")),
3918 }
3919}
3920
3921async fn connected_inspector_session(
3922 state: &AppState,

Callers 1

Calls 2

inspector_sessionFunction · 0.85

Tested by

no test coverage detected