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

Method set

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

Source from the content-addressed store, hash-verified

644 }
645
646 async fn set(
647 &mut self,
648 self_: Resource<Global>,
649 d: Resource<Debuggee>,
650 val: Resource<WasmValue>,
651 ) -> Result<()> {
652 let global = *ResourceTable::get(self, &self_)?;
653 let value = ResourceTable::get(self, &val)?.clone();
654 let d = debugger(self, &d)?;
655 d.global_set(global, value).await
656 }
657
658 async fn clone(&mut self, self_: Resource<Global>) -> Result<Resource<Global>> {
659 let global = *ResourceTable::get(self, &self_)?;

Callers 2

global_setMethod · 0.45
table_set_elementMethod · 0.45

Calls 4

debuggerFunction · 0.85
global_setMethod · 0.80
getFunction · 0.50
cloneMethod · 0.45

Tested by

no test coverage detected