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

Method get_instance

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

Source from the content-addressed store, hash-verified

848
849impl wit::HostFrame for ResourceTable {
850 async fn get_instance(
851 &mut self,
852 self_: Resource<Frame>,
853 d: Resource<Debuggee>,
854 ) -> Result<Resource<Instance>> {
855 let frame = self.get(&self_)?.0.clone();
856 let d = debugger(self, &d)?;
857 let instance = d.frame_instance(frame).await?;
858 Ok(self.push(instance)?)
859 }
860
861 async fn get_func_index(
862 &mut self,

Callers 3

read_wasm_globalMethod · 0.80
frame_to_pcMethod · 0.80
frame_to_return_addrMethod · 0.80

Calls 6

debuggerFunction · 0.85
OkFunction · 0.85
frame_instanceMethod · 0.80
cloneMethod · 0.45
getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected