MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / handle

Method handle

tests/all/debug.rs:1365–1372  ·  view source on GitHub ↗
(&self, _store: StoreContextMut<'_, ()>, event: DebugEvent<'_>)

Source from the content-addressed store, hash-verified

1363 impl DebugHandler for CountingHandler {
1364 type Data = ();
1365 async fn handle(&self, _store: StoreContextMut<'_, ()>, event: DebugEvent<'_>) {
1366 match event {
1367 DebugEvent::Breakpoint => {
1368 self.0.fetch_add(1, Ordering::Relaxed);
1369 }
1370 _ => {}
1371 }
1372 }
1373 }
1374
1375 let counter = Arc::new(AtomicUsize::new(0));

Callers

nothing calls this directly

Calls 10

debug_exit_framesMethod · 0.80
unwrapMethod · 0.45
nextMethod · 0.45
instanceMethod · 0.45
pushMethod · 0.45
lockMethod · 0.45
as_u32Method · 0.45
rawMethod · 0.45

Tested by

no test coverage detected