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

Method get

examples/resource-component/main.rs:81–88  ·  view source on GitHub ↗
(
        &mut self,
        resource: Resource<Connection>,
        key: String,
    )

Source from the content-addressed store, hash-verified

79 }
80
81 async fn get(
82 &mut self,
83 resource: Resource<Connection>,
84 key: String,
85 ) -> Result<Option<String>, wasmtime::Error> {
86 let connection = self.resource_table.get(&resource)?;
87 Ok(connection.storage.get(&key).cloned())
88 }
89
90 async fn set(
91 &mut self,

Callers 15

mainFunction · 0.45
run_workerFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
deserializeFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

OkFunction · 0.85

Tested by

no test coverage detected