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§
- Async
Read Stream - Provides a
HostInputStream
impl from atokio::io::AsyncRead
impl - Async
Write Stream - Provides a
HostOutputStream
impl from atokio::io::AsyncWrite
impl - Closed
Input Stream - A stream that is ready immediately, but will always report that it’s closed.
- Closed
Output Stream - An output stream that is always closed.
- Memory
Input Pipe - Memory
Output Pipe - Sink
Output Stream - An output stream that consumes all input written to it, and is always ready.