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

Method get_module

crates/debugger/src/host/api.rs:300–310  ·  view source on GitHub ↗
(
        &mut self,
        self_: Resource<Instance>,
        d: Resource<Debuggee>,
    )

Source from the content-addressed store, hash-verified

298
299impl wit::HostInstance for ResourceTable {
300 async fn get_module(
301 &mut self,
302 self_: Resource<Instance>,
303 d: Resource<Debuggee>,
304 ) -> Result<Resource<Module>> {
305 let i = *self.get(&self_)?;
306 let d = debugger(self, &d)?;
307 let module = d.get_instance_module(i).await?;
308 let module = self.push(module)?;
309 Ok(module)
310 }
311
312 async fn get_memory(
313 &mut self,

Callers

nothing calls this directly

Calls 5

debuggerFunction · 0.85
OkFunction · 0.85
get_instance_moduleMethod · 0.80
getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected