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

Method set

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

Source from the content-addressed store, hash-verified

88 }
89
90 async fn set(
91 &mut self,
92 resource: Resource<Connection>,
93 key: String,
94 value: String,
95 ) -> Result<()> {
96 let connection = self.resource_table.get_mut(&resource)?;
97 connection.storage.insert(key, value);
98 Ok(())
99 }
100
101 async fn remove(
102 &mut self,

Callers 5

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
replace_valueMethod · 0.45

Calls 3

OkFunction · 0.85
get_mutMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected