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

Method get_values

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

Source from the content-addressed store, hash-verified

763 }
764
765 async fn get_values(
766 &mut self,
767 self_: Resource<WasmException>,
768 d: Resource<Debuggee>,
769 ) -> Result<Vec<Resource<WasmValue>>> {
770 let exn = self.get(&self_)?.clone();
771 let d = debugger(self, &d)?;
772 let values = d.exnref_get_fields(exn.0).await?;
773 let mut resources = vec![];
774 for v in values {
775 resources.push(self.push(v)?);
776 }
777 Ok(resources)
778 }
779
780 async fn clone(
781 &mut self,

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected