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

Method get_func

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

Source from the content-addressed store, hash-verified

355 }
356
357 async fn get_func(
358 &mut self,
359 self_: Resource<Instance>,
360 d: Resource<Debuggee>,
361 func_index: u32,
362 ) -> Result<Resource<Func>> {
363 let instance = *self.get(&self_)?;
364 let d = debugger(self, &d)?;
365 let func = d
366 .instance_get_func(instance, func_index)
367 .await?
368 .ok_or(wit::Error::InvalidEntity)?;
369 Ok(self.push(func)?)
370 }
371
372 async fn get_tag(
373 &mut self,

Callers 3

basic_debuggerFunction · 0.45
early_finishFunction · 0.45
drop_debuggee_and_storeFunction · 0.45

Calls 5

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

Tested by

no test coverage detected