[][src]Crate wasi_types

Rusty WASI type definitions based on the spec

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.

Event
EventFdState
Fd

A file descriptor number. As in POSIX, 0, 1, and 2 are stdin, stdout, and stderr, respectively. File descriptors are not guaranteed to be contiguous or allocated in ascending order. Information about a file descriptor may be obtained through fd_prestat_get.

FdFlags
FdStat
FileStat

File attributes.

Inode

File serial number that is unique within its file system.

IoVec

A region of memory for scatter/gather reads.

LookupFlags
OpenFlags
Prestat

Information about a preopened resource.

Rights
SetTimeFlags
Timestamp

Timestamp in nanoseconds.

Enums

Advice

File or memory access pattern advisory information.

ClockId

Identifiers for clocks.

ErrNo

Error codes returned by functions.

EventRwFlags

The state of the file descriptor subscribed to with EventType::FdRead or EventType::FdWrite.

EventType
FileType

The type of a file descriptor or file.

PreopenType
Signal

Signal condition.

Whence

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

Type Definitions

ExitCode
FileDelta

Relative offset within a file.

FileSize
LinkCount

Number of hard links to an inode.

Pointer
Size
UserData