Run the debugger body until completion, with no further events.
(&mut self)
| 410 | |
| 411 | /// Run the debugger body until completion, with no further events. |
| 412 | pub async fn finish(&mut self) -> Result<()> { |
| 413 | if self.is_complete() { |
| 414 | return Ok(()); |
| 415 | } |
| 416 | loop { |
| 417 | match self.run().await? { |
| 418 | DebugRunResult::Finished => break, |
| 419 | e => { |
| 420 | log::trace!("finish: event {e:?}"); |
| 421 | } |
| 422 | } |
| 423 | } |
| 424 | if let Some(handle) = self.handle.take() { |
| 425 | handle.await??; |
| 426 | } |
| 427 | assert!(self.is_complete()); |
| 428 | Ok(()) |
| 429 | } |
| 430 | |
| 431 | /// Perform some action on the contained `Store` while not running. |
| 432 | /// |
no test coverage detected