[][src]Module wasihost_core::wasi_snapshot_preview1

Implementation of types and interfaces for WASI snapshot preview 1.

Modules

native

Native WASI types. These types can be written to and read from WASM memory.

Structs

Device

Identifier for a device containing a file system. Can be used in combination with inode to uniquely identify a file or directory in the filesystem.

Dircookie

A reference to the offset of a directory entry.

Dirent

A directory entry.

Dirnamlen

The type for the $d_namlen field of $dirent.

Event

An event that occurred.

EventFdReadwrite

The contents of an $event when type is eventtype::fd_read or eventtype::fd_write.

Eventrwflags

The state of the file descriptor subscribed to with eventtype::fd_read or eventtype::fd_write.

Exitcode

Exit code generated by a process when exiting.

Fd

A file descriptor handle.

Fdflags

File descriptor flags.

Fdstat

File descriptor attributes.

Filedelta

Relative offset within a file.

Filesize

Non-negative file size or length of a region within a file.

Filestat

File attributes.

Fstflags

Which file time attributes to adjust.

Inode

File serial number that is unique within its file system.

Linkcount

Number of hard links to an inode.

Lookupflags

Flags determining the method of how paths are resolved.

Oflags

Open flags used by path_open.

PrestatDir

The contents of a $prestat when type is preopentype::dir.

Riflags

Flags provided to sock_recv.

Rights

File descriptor rights, determining which actions may be performed.

Roflags

Flags returned by sock_recv.

Sdflags

Which channels on a socket to shut down.

Siflags

Flags provided to sock_send. As there are currently no flags defined, it must be set to zero.

Size
Subclockflags

Flags determining how to interpret the timestamp provided in subscription_clock::timeout.

Subscription

Subscription to an event.

SubscriptionClock

The contents of a subscription when type is eventtype::clock.

SubscriptionFdReadwrite

The contents of a subscription when type is type is eventtype::fd_read or eventtype::fd_write.

Timestamp

Timestamp in nanoseconds.

Userdata

User-provided value that may be attached to objects that is retained when extracted from the implementation.

Enums

Advice

File or memory access pattern advisory information.

Clockid

Identifiers for clocks.

Errno

Error codes returned by functions. Not all of these error codes are returned by the functions provided by this API; some are used in higher-level library layers, and others are provided merely for alignment with POSIX.

Eventtype

Type of a subscription to an event or its occurrence.

Filetype

The type of a file descriptor or file.

Preopentype

Identifiers for preopened capabilities.

Prestat

Information about a pre-opened capability.

Signal

Signal condition.

SubscriptionU

The contents of a subscription.

Whence

The position relative to which to set the offset of the file descriptor.

Traits

WasiImports

Functions necessary to satisfy the WASI specification.

WasiImportsExt

Extension methods for the WasiImports trait.

Type Definitions

WasiResult

Result type for WASI methods.