[−][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 |
| 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 |
| Eventrwflags | The state of the file descriptor subscribed to with
|
| 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 |
| PrestatDir | The contents of a $prestat when type is |
| Riflags | Flags provided to |
| Rights | File descriptor rights, determining which actions may be performed. |
| Roflags | Flags returned by |
| Sdflags | Which channels on a socket to shut down. |
| Siflags | Flags provided to |
| Size | |
| Subclockflags | Flags determining how to interpret the timestamp provided in
|
| Subscription | Subscription to an event. |
| SubscriptionClock | The contents of a |
| SubscriptionFdReadwrite | The contents of a |
| 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 |
| 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 |
Type Definitions
| WasiResult | Result type for WASI methods. |