(&self)
| 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 |