(&self)
| 1136 | } |
| 1137 | |
| 1138 | pub async fn current_snapshots(&self) -> Vec<Sandbox> { |
| 1139 | let registry = self.registry.lock().await; |
| 1140 | let mut snapshots = registry |
| 1141 | .values() |
| 1142 | .map(|record| record.snapshot.clone()) |
| 1143 | .collect::<Vec<_>>(); |
| 1144 | snapshots.sort_by(|left, right| left.name.cmp(&right.name)); |
| 1145 | snapshots |
| 1146 | } |
| 1147 | |
| 1148 | async fn restore_persisted_sandboxes(&self) { |
| 1149 | let state_root = sandboxes_root_dir(&self.config.state_dir); |
no outgoing calls
no test coverage detected