(&self, id: &str, started: bool)
| 275 | } |
| 276 | |
| 277 | fn set_started(&self, id: &str, started: bool) -> Result<()> { |
| 278 | let work_dir = self.work_dir(id); |
| 279 | work_dir |
| 280 | .set_started(started) |
| 281 | .context("Failed to set started") |
| 282 | } |
| 283 | |
| 284 | pub async fn stop_vm(&self, id: &str) -> Result<()> { |
| 285 | self.set_started(id, false)?; |
no test coverage detected