Module read_write

Source
Expand description

read and write, optionally positioned, optionally vectored.

Re-exports§

pub use backend::io::types::ReadWriteFlags;

Structs§

IoSlice
A buffer type used with Write::write_vectored.
IoSliceMut
A buffer type used with Read::read_vectored.

Functions§

pread
pread(fd, buf, offset)—Reads from a file at a given position.
preadv
preadv(fd, bufs, offset)—Reads from a file at a given position into multiple buffers.
preadv2
preadv2(fd, bufs, offset, flags)—Reads data, with several options.
pwrite
pwrite(fd, bufs)—Writes to a file at a given position.
pwritev
pwritev(fd, bufs, offset)—Writes to a file at a given position from multiple buffers.
pwritev2
pwritev2(fd, bufs, offset, flags)—Writes data, with several options.
read
read(fd, buf)—Reads from a stream.
readv
readv(fd, bufs)—Reads from a stream into multiple buffers.
write
write(fd, buf)—Writes to a stream.
writev
writev(fd, bufs)—Writes to a stream from multiple buffers.