Skip to main content

Module fd

Module fd 

1.66.0 · Source
Available on Unix or HermitCore or target_os=trusty or WASI or target_os=motor only.
Expand description

Owned and borrowed Unix-like file descriptors.

This module is supported on Unix platforms and WASI, which both use a similar file descriptor system for referencing OS resources.

Structs§

BorrowedFd
A borrowed file descriptor.
OwnedFd
An owned file descriptor.

Constants§

STDERRExperimental
The file descriptor for the standard error stream of the current process.
STDINExperimental
The file descriptor for the standard input stream of the current process.
STDOUTExperimental
The file descriptor for the standard output stream of the current process.

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.
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.

Type Aliases§

RawFdNon-HermitCore and non-target_os=motor
Raw file descriptors.