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

Function apply_page_listing

packages/server/src/webkit.rs:1099–1106  ·  view source on GitHub ↗
(pages: &mut BTreeMap<(String, u64), WebKitPage>, listing_args: &Dictionary)

Source from the content-addressed store, hash-verified

1097}
1098
1099fn apply_page_listing(pages: &mut BTreeMap<(String, u64), WebKitPage>, listing_args: &Dictionary) {
1100 if let Some(app_id) = string_value(listing_args, "WIRApplicationIdentifierKey") {
1101 pages.retain(|(page_app_id, _), _| page_app_id != &app_id);
1102 }
1103 for page in parse_page_listing(listing_args) {
1104 pages.insert((page.app_id.clone(), page.page_id), page);
1105 }
1106}
1107
1108fn rpc_args(connection_id: &str) -> Dictionary {
1109 let mut args = Dictionary::new();

Calls 4

parse_page_listingFunction · 0.85
insertMethod · 0.80
string_valueFunction · 0.70
cloneMethod · 0.65