pub struct Read { /* private fields */ }
Expand description

Issue the equivalent of a pread(2) or pwrite(2) system call

  • fd is the file descriptor to be operated on,
  • addr contains the buffer in question,
  • len contains the length of the IO operation,

These are non-vectored versions of the IORING_OP_READV and IORING_OP_WRITEV opcodes. See also read(2) and write(2) for the general description of the related system call.

Available since 5.6.

Implementations

The opcode of the operation. This can be passed to Probe::is_supported to check if this operation is supported with the current kernel.

offset contains the read or write offset.

If fd does not refer to a seekable file, offset must be set to zero. If offsett is set to -1, the offset will use (and advance) the file position, like the read(2) and write(2) system calls.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.