Module wasmtime_wasi::pipe
source · Expand description
Virtual pipes.
These types provide easy implementations of WasiFile
that mimic much of the behavior of Unix
pipes. These are particularly helpful for redirecting WASI stdio handles to destinations other
than OS files.
Some convenience constructors are included for common backing types like Vec<u8>
and String
,
but the virtual pipes can be instantiated with any Read
or Write
type.
Structs§
- Provides a
HostInputStream
impl from atokio::io::AsyncRead
impl - Provides a
HostOutputStream
impl from atokio::io::AsyncWrite
impl - A stream that is ready immediately, but will always report that it’s closed.
- An output stream that is always closed.
- An output stream that consumes all input written to it, and is always ready.