[][src]Crate wasi_common

Re-exports

pub use virtfs::FileContents;
pub use virtfs::VirtualDirEntry;

Modules

fs

A very experimental module modeled providing a high-level and safe filesystem interface, modeled after std::fs, implemented on top of WASI functions.

old
snapshots
virtfs
wasi

Structs

HandleRights

Represents rights of a Handle, either already held or required.

OsDir

A directory in the operating system's file system. Its impl of Handle is in sys::osdir. This type is exposed to all other modules as sys::osdir::OsDir when configured.

OsFile

A file backed by the operating system's file system. Dereferences to a RawOsHandle. Its impl of Handle uses Rust's std to implement all file descriptor operations.

OsOther

OsOther is something of a catch-all for everything not covered with the specific handle types (OsFile, OsDir, Stdio). It currently encapsulates handles such as OS pipes, sockets, streams, etc. As such, when redirecting stdio within WasiCtxBuilder, the redirected pipe should be encapsulated within this instance and not OsFile which represents a regular OS file.

WasiCtx
WasiCtxBuilder

A builder allowing customizable construction of WasiCtx instances.

Enums

Error

Internal error type for the wasi-common crate. Contains variants of the WASI $errno type are added according to what is actually used internally by the crate. Not all values are represented presently.

WasiCtxBuilderError

Possible errors when WasiCtxBuilder fails building WasiCtx.

Traits

Handle

Generic interface for all WASI-compatible handles. We currently group these into two groups:

Functions

preopen_dir

Type Definitions

Result