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

Method encoder_snapshots

packages/server/src/simulators/registry.rs:139–151  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

137 }
138
139 pub fn encoder_snapshots(&self) -> Vec<serde_json::Value> {
140 self.store
141 .values()
142 .into_iter()
143 .map(|session| {
144 let snapshot = session.snapshot();
145 json!({
146 "udid": session.udid(),
147 "encoder": snapshot.get("encoder").cloned().unwrap_or_else(|| json!({})),
148 })
149 })
150 .collect()
151 }
152
153 pub fn enrich_simulators(&self, simulators: Vec<Simulator>) -> Vec<serde_json::Value> {
154 simulators

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.65
snapshotMethod · 0.45

Tested by

no test coverage detected