Module rustix::io

source ·
Expand description

I/O operations.

Structs

Enums

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

Functions

  • close(raw_fd)—Closes a RawFd directly.
  • dup(fd)—Creates a new OwnedFd instance that shares the same underlying file description as fd.
  • dup2(fd, new)—Changes the file description of a file descriptor.
  • Utility function to safely dup2 over stderr (fd 2).
  • Utility function to safely dup2 over stdin (fd 0).
  • Utility function to safely dup2 over stdout (fd 1).
  • dup3(fd, new, flags)—Changes the file description of a file descriptor, with flags.
  • fcntl(fd, F_DUPFD_CLOEXEC)—Creates a new OwnedFd instance, with value at least min, that has O_CLOEXEC set and that shares the same underlying [file description] as fd.
  • fcntl(fd, F_GETFD)—Returns a file descriptor’s flags.
  • fcntl(fd, F_SETFD, flags)—Sets a file descriptor’s flags.
  • ioctl(fd, FIONBIO, &value)—Enables or disables non-blocking mode.
  • pipe()—Creates a pipe.
  • pipe2(flags)—Creates a pipe, with flags.
  • poll(self.fds, timeout)
  • pread(fd, buf, offset)—Reads from a file at a given position.
  • pwrite(fd, bufs)—Writes to a file at a given position.
  • STDERR_FILENO—Standard error, raw.
  • STDIN_FILENO—Standard input, raw.
  • STDOUT_FILENO—Standard output, raw.
  • read(fd, buf)—Reads from a stream.
  • readv(fd, bufs)—Reads from a stream into multiple buffers.
  • Call f until it either succeeds or fails other than Errno::INTR.
  • STDERR_FILENO—Standard error, borrowed.
  • STDIN_FILENO—Standard input, borrowed.
  • STDOUT_FILENO—Standard output, borrowed.
  • STDERR_FILENO—Standard error, owned.
  • STDIN_FILENO—Standard input, owned.
  • STDOUT_FILENO—Standard output, owned.
  • write(fd, buf)—Writes to a stream.
  • writev(fd, bufs)—Writes to a stream from multiple buffers.

Type Aliases