Module rustix::fd

source · []
Expand description

Export *Fd types and traits that used in rustix’s public API.

Users can use this to avoid needing to import anything else to use the same versions of these types and traits.

Rustix APIs that use OwnedFd use rustix::io::OwnedFd instead, which allows rustix to implement close for them.

Structs

A borrowed socket.

An owned socket.

Traits

A version of AsFd for use with Winsock2 API.

A version of AsRawFd for use with Winsock2 API.

A trait to borrow the socket from an underlying object.

A version of FromFd for use with Winsock2 API.

A version of FromRawFd for use with Winsock2 API.

A trait to express the ability to construct an object from a socket.

A version of IntoFd for use with Winsock2 API.

A version of IntoRawFd for use with Winsock2 API.

A trait to express the ability to consume an object and acquire ownership of its socket.

Type Definitions

Raw SOCKETs.