Module rustix::io

source · []
Expand description

I/O operations.

Structs

The error type for rustix APIs.
struct pollfd—File descriptor and flags for use with poll.
POLL* flags for use with poll.

Enums

Enumeration of possible methods to seek within an I/O object.

Functions

close(raw_fd)—Closes a RawFd directly.
ioctl(fd, FIONBIO, &value)—Enables or disables non-blocking mode.
ioctl(fd, FIONREAD)—Returns the number of bytes ready to be read.
poll(self.fds, timeout)
Call f until it either succeeds or fails other than Errno::INTR.

Type Definitions

A specialized Result type for rustix APIs.