Module prelude

1.0.0 · Source
Available on Unix only.
Expand description

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.
CommandExt
Unix-specific extensions to the process::Command builder.
DirEntryExt
Unix-specific extension methods for fs::DirEntry.
ExitStatusExt
Unix-specific extensions to process::ExitStatus and ExitStatusError.
FileExt
Unix-specific extensions to fs::File.
FileTypeExt
Unix-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.
JoinHandleExt
Unix-specific extensions to JoinHandle.
MetadataExt
Unix-specific extensions to fs::Metadata.
OpenOptionsExt
Unix-specific extensions to fs::OpenOptions.
OsStrExt
Platform-specific extensions to OsStr.
OsStringExt
Platform-specific extensions to OsString.
PermissionsExt
Unix-specific extensions to fs::Permissions.

Type Aliases§

RawFd
Raw file descriptors.