Same as [`stdin`](WasiCtxBuilder::stdin), but for stdout.
(&mut self, stdout: impl StdoutStream + 'static)
| 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 { |