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

Method new_single_step

crates/debugger/src/host/api.rs:107–120  ·  view source on GitHub ↗
(
        mut inner: Box<dyn OpaqueDebugger + Send + 'static>,
        resumption: wit::ResumptionValue,
    )

Source from the content-addressed store, hash-verified

105
106impl EventFuture {
107 fn new_single_step(
108 mut inner: Box<dyn OpaqueDebugger + Send + 'static>,
109 resumption: wit::ResumptionValue,
110 ) -> Self {
111 EventFuture {
112 state: EventFutureState::Running(Box::pin(async move {
113 if let Err(e) = inner.handle_resumption(&resumption).await {
114 return (inner, Err(e));
115 }
116 let result = inner.single_step().await;
117 (inner, result)
118 })),
119 }
120 }
121
122 fn new_continue(
123 mut inner: Box<dyn OpaqueDebugger + Send + 'static>,

Callers

nothing calls this directly

Calls 2

handle_resumptionMethod · 0.80
single_stepMethod · 0.45

Tested by

no test coverage detected