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

Method stdout

crates/wasi/src/ctx.rs:90–93  ·  view source on GitHub ↗

Same as [`stdin`](WasiCtxBuilder::stdin), but for stdout.

(&mut self, stdout: impl StdoutStream + 'static)

Source from the content-addressed store, hash-verified

88
89 /// Same as [`stdin`](WasiCtxBuilder::stdin), but for stdout.
90 pub fn stdout(&mut self, stdout: impl StdoutStream + 'static) -> &mut Self {
91 self.cli.stdout = Box::new(stdout);
92 self
93 }
94
95 /// Same as [`stdin`](WasiCtxBuilder::stdin), but for stderr.
96 pub fn stderr(&mut self, stderr: impl StdoutStream + 'static) -> &mut Self {

Callers 15

mainFunction · 0.45
new_storeMethod · 0.45
discover_test_binariesFunction · 0.45
has_commandFunction · 0.45
assert_outputFunction · 0.45
run_cwasm_from_stdinFunction · 0.45
preview2_stdinFunction · 0.45
p2_cli_stdin_emptyFunction · 0.45
p2_cli_stdinFunction · 0.45
p2_cli_splice_stdinFunction · 0.45
runFunction · 0.45
spawnMethod · 0.45

Calls 1

newFunction · 0.50

Tested by 13

run_cwasm_from_stdinFunction · 0.36
preview2_stdinFunction · 0.36
p2_cli_stdin_emptyFunction · 0.36
p2_cli_stdinFunction · 0.36
p2_cli_splice_stdinFunction · 0.36
runFunction · 0.36
spawnMethod · 0.36
p3_cli_read_stdinFunction · 0.36
p3_cli_stdout_flushFunction · 0.36
wizenFunction · 0.36
run_wasmtime_pipedFunction · 0.36
parent_processFunction · 0.36