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

Method all_instances

crates/debugger/src/host/api.rs:199–210  ·  view source on GitHub ↗
(
        &mut self,
        debuggee: Resource<Debuggee>,
    )

Source from the content-addressed store, hash-verified

197 }
198
199 async fn all_instances(
200 &mut self,
201 debuggee: Resource<Debuggee>,
202 ) -> Result<Vec<Resource<Instance>>> {
203 let d = debugger(self, &debuggee)?;
204 let instances = d.all_instances().await?;
205 let mut resources = vec![];
206 for instance in instances {
207 resources.push(self.push_child(instance, &debuggee)?);
208 }
209 Ok(resources)
210 }
211
212 async fn interrupt(&mut self, debuggee: Resource<Debuggee>) -> Result<()> {
213 let d = self.get_mut(&debuggee)?;

Callers

nothing calls this directly

Calls 4

debuggerFunction · 0.85
OkFunction · 0.85
push_childMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected