(&mut self, already_running: bool)
| 1230 | |
| 1231 | impl VmStateMut { |
| 1232 | pub fn start(&mut self, already_running: bool) { |
| 1233 | self.boot_progress = if already_running { |
| 1234 | "running".to_string() |
| 1235 | } else { |
| 1236 | "booting".to_string() |
| 1237 | }; |
| 1238 | self.boot_error.clear(); |
| 1239 | self.shutdown_progress.clear(); |
| 1240 | } |
| 1241 | |
| 1242 | pub fn reset_na(&mut self) { |
| 1243 | self.boot_progress = "N/A".to_string(); |