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

Function command_service_url_for_udid

packages/server/src/main.rs:1224–1234  ·  view source on GitHub ↗
(
    udid: &str,
    explicit: &Option<String>,
    service_url: &Option<String>,
)

Source from the content-addressed store, hash-verified

1222}
1223
1224fn command_service_url_for_udid(
1225 udid: &str,
1226 explicit: &Option<String>,
1227 service_url: &Option<String>,
1228) -> anyhow::Result<Option<String>> {
1229 if android::is_android_id(udid) {
1230 Ok(Some(command_service_url(explicit.as_deref())?))
1231 } else {
1232 Ok(service_url.clone())
1233 }
1234}
1235
1236impl Default for ServiceLaunchOptions {
1237 fn default() -> Self {

Callers 1

mainFunction · 0.85

Calls 3

is_android_idFunction · 0.85
command_service_urlFunction · 0.85
cloneMethod · 0.65

Tested by

no test coverage detected