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

Function inspector_info_from_response

packages/server/src/inspector.rs:800–815  ·  view source on GitHub ↗
(response: &Value)

Source from the content-addressed store, hash-verified

798}
799
800fn inspector_info_from_response(response: &Value) -> Option<Value> {
801 let result = response.get("result")?;
802 if result
803 .get("protocolVersion")
804 .and_then(Value::as_str)
805 .is_some()
806 && result
807 .get("processIdentifier")
808 .and_then(Value::as_i64)
809 .is_some()
810 {
811 Some(result.clone())
812 } else {
813 None
814 }
815}
816
817async fn fail_all_pending(pending: &PendingResponses, message: &str) {
818 let mut pending = pending.lock().await;

Callers 1

Calls 2

getMethod · 0.65
cloneMethod · 0.65

Tested by

no test coverage detected