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

Method get_tag

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

Source from the content-addressed store, hash-verified

370 }
371
372 async fn get_tag(
373 &mut self,
374 self_: Resource<Instance>,
375 d: Resource<Debuggee>,
376 tag_index: u32,
377 ) -> Result<Resource<Tag>> {
378 let instance = *self.get(&self_)?;
379 let d = debugger(self, &d)?;
380 let tag = d
381 .instance_get_tag(instance, tag_index)
382 .await?
383 .ok_or(wit::Error::InvalidEntity)?;
384 Ok(self.push(tag)?)
385 }
386
387 async fn clone(&mut self, self_: Resource<Instance>) -> Result<Resource<Instance>> {
388 let instance = *self.get(&self_)?;

Callers

nothing calls this directly

Calls 7

debuggerFunction · 0.85
OkFunction · 0.85
instance_get_tagMethod · 0.80
exnref_get_tagMethod · 0.80
getMethod · 0.45
pushMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected