[][src]Module wasi_common::virtfs::pipe

Virtual pipes.

These types provide easy implementations of Handle 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.

Note that poll_oneoff is not supported for these types, so they do not match the behavior of real pipes exactly.

Structs

ReadPipe

A virtual pipe read end.

WritePipe

A virtual pipe write end.