Struct mio_aio::LioCbBuilder [−][src]
pub struct LioCbBuilder<'a>(_);
Expand description
Implementations
Add a new operation on a mutable slice
Arguments
fd
- File descriptor the file to read from or write to.
offset
- Offset within the file to read from or write to.
buf
- Memory location for the data
prio
- I/O priority. Not supported by all operating systems.
opcode
- Should be either LIO_READ
or LIO_WRITE
.
Add a new operation on an immutable mutable slice
Arguments
fd
- File descriptor the file to read from or write to.
offset
- Offset within the file to read from or write to.
buf
- Memory location for the data
prio
- I/O priority. Not supported by all operating systems.
opcode
- Should be either LIO_READ
or LIO_WRITE
.
Complete the build into an LioCb
, ready to use.
The operating system requires a stable memory location once I/O is
submitted, so no new operations may be added after finish
.
Create a new LioCbBuilder
with room for capacity
operations.