Module cli

Source

Re-exports§

pub use tokio::io::Stderr;
pub use tokio::io::Stdin;
pub use tokio::io::Stdout;
pub use tokio::io::stderr;
pub use tokio::io::stdin;
pub use tokio::io::stdout;

Structs§

AsyncStdinStream
An impl of StdinStream built on top of [AsyncRead].
AsyncStdoutStream
A wrapper of crate::p2::pipe::AsyncWriteStream that implements StdoutStream. Note that the OutputStream impl for this is not correct when used for interleaved async IO.
InputFile
This implementation will yield input streams that block on reads, and reads directly from a file. If truly async input is required, [AsyncStdinStream] should be used instead.
OutputFile
This implementation will yield output streams that block on writes, and output directly to a file. If truly async output is required, [AsyncStdoutStream] should be used instead.
WasiCliCtx
WasiCliCtxView

Traits§

IsTerminal
StdinStream
A trait used to represent the standard input to a guest program.
StdoutStream
Similar to StdinStream, except for output.
WasiCliView
Provides a “view” of wasi:cli-related context used to implement host traits.