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

Method state

crates/wasi/src/p2/write_stream.rs:66–68  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

64 Ok(state.write_budget)
65 }
66 fn state(&self) -> std::sync::MutexGuard<'_, WorkerState> {
67 self.state.lock().unwrap()
68 }
69 fn pop(&self) -> Option<Job> {
70 let mut state = self.state();
71 if state.items.is_empty() {

Callers 7

check_writeMethod · 0.45
popMethod · 0.45
report_errorMethod · 0.45
workMethod · 0.45
poll_readyMethod · 0.45
writeMethod · 0.45
flushMethod · 0.45

Calls 2

unwrapMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected