MCPcopy Create free account
hub / github.com/bytecodealliance/component-docs / new

Method new

component-model/examples/example-host/src/state.rs:10–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9impl States {
10 pub fn new() -> Self {
11 let table = ResourceTable::new();
12 let ctx = WasiCtxBuilder::new().build();
13 Self { table, ctx }
14 }
15}
16
17impl WasiView for States {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected