Expand description
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
- Event
FdState - 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
- File
Stat - File attributes.
- Inode
- File serial number that is unique within its file system.
- IoVec
- A region of memory for scatter/gather reads.
- Lookup
Flags - Open
Flags - Prestat
- Information about a preopened resource.
- Rights
- SetTime
Flags - Timestamp
- Timestamp in nanoseconds.
Enums§
- Advice
- File or memory access pattern advisory information.
- ClockId
- Identifiers for clocks.
- ErrNo
- Error codes returned by functions.
- Event
RwFlags - The state of the file descriptor subscribed to with
EventType::FdRead
orEventType::FdWrite
. - Event
Type - File
Type - The type of a file descriptor or file.
- Preopen
Type - Signal
- Signal condition.
- Whence
- The position relative to which to set the offset of the file descriptor.