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

Method get

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

Source from the content-addressed store, hash-verified

630
631impl wit::HostGlobal for ResourceTable {
632 async fn get(
633 &mut self,
634 self_: Resource<Global>,
635 d: Resource<Debuggee>,
636 ) -> Result<Resource<WasmValue>> {
637 // N.B.: we use UFCS here because `HostGlobal::get` conflicts
638 // with `ResourceTable::get` and we're implementing the WIT
639 // trait directly on the `ResourceTable`.
640 let global = *ResourceTable::get(self, &self_)?;
641 let d = debugger(self, &d)?;
642 let value = d.global_get(global).await?;
643 Ok(self.push(value)?)
644 }
645
646 async fn set(
647 &mut self,

Callers 15

get_moduleMethod · 0.45
get_memoryMethod · 0.45
get_globalMethod · 0.45
get_tableMethod · 0.45
get_funcMethod · 0.45
get_tagMethod · 0.45
cloneMethod · 0.45
unique_idMethod · 0.45
add_breakpointMethod · 0.45
remove_breakpointMethod · 0.45
bytecodeMethod · 0.45
size_bytesMethod · 0.45

Calls 5

debuggerFunction · 0.85
OkFunction · 0.85
getFunction · 0.50
global_getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected