[][src]Module wasmer_wasi::state

WARNING: the API exposed here is unstable and very experimental. Certain things are not ready yet and may be broken in patch releases. If you're using this and have any specific needs, please let us know here https://github.com/wasmerio/wasmer/issues/583 or by filing an issue.

Structs

Fd
HostFile

A thin wrapper around std::fs::File

Inode

An index (and generation) into an Arena.

InodeVal

A file that Wasi knows about that may or may not be open

PollEventBuilder
PollEventIter
Stderr
Stdin
Stdout
WasiFs

Warning, modifying these fields directly may cause invariants to break and should be considered unsafe. These fields may be made private in a future release

WasiState

Enums

Kind
PollEvent
WasiFsError

Error type for external users

Constants

ALL_RIGHTS

all the rights enabled

MAX_SYMLINKS

A completely aribtrary "big enough" number used as the upper limit for the number of symlinks that can be traversed when resolving a path

VIRTUAL_ROOT_FD

the fd value of the virtual root

Traits

WasiFile

This trait relies on your file closing when it goes out of scope via Drop

WasiPath

Functions

get_wasi_state

Get WasiState from a Ctx This function is unsafe because it must be called on a WASI Ctx

host_file_type_to_wasi_file_type
iterate_poll_events

Type Definitions

PollEventSet