Module prelude
A prelude for conveniently writing platform-specific code.
Includes all extension traits, and some important type definitions.
Structs
- BorrowedFd A borrowed file descriptor.
- OwnedFd An owned file descriptor.
Traits
- AsFd A trait to borrow the file descriptor from an underlying object.
- AsRawFd A trait to extract the raw file descriptor from an underlying object.
-
DirEntryExt
WASI-specific extension methods for
fs::DirEntry. -
FileExt
WASI-specific extensions to
File. -
FileTypeExt
WASI-specific extensions for
fs::FileType. - FromRawFd A trait to express the ability to construct an object from a raw file descriptor.
- IntoRawFd A trait to express the ability to consume an object and acquire ownership of its raw file descriptor.
-
MetadataExt
WASI-specific extensions to
fs::Metadata. -
OpenOptionsExt
WASI-specific extensions to
OpenOptions. -
OsStrExt
Platform-specific extensions to
OsStr. -
OsStringExt
Platform-specific extensions to
OsString.
Type Aliases
- RawFd Raw file descriptors.