(table: &mut ResourceTable, value: DebugRunResult)
| 251 | } |
| 252 | |
| 253 | fn result_to_event(table: &mut ResourceTable, value: DebugRunResult) -> Result<wit::Event> { |
| 254 | Ok(match value { |
| 255 | DebugRunResult::Finished => wit::Event::Complete, |
| 256 | DebugRunResult::HostcallError => wit::Event::Trap, |
| 257 | DebugRunResult::Trap(_t) => wit::Event::Trap, |
| 258 | DebugRunResult::Breakpoint => wit::Event::Breakpoint, |
| 259 | DebugRunResult::EpochYield => wit::Event::Interrupted, |
| 260 | DebugRunResult::Exception(e) => { |
| 261 | let e = table.push(WasmException(e))?; |
| 262 | wit::Event::Exception(e) |
| 263 | } |
| 264 | }) |
| 265 | } |
| 266 | |
| 267 | impl wit::HostEventFuture for ResourceTable { |
| 268 | async fn finish( |
no test coverage detected