Struct tokio_linux_aio::AioContext [] [src]

pub struct AioContext { /* fields omitted */ }

Methods

impl AioContext
[src]

AioContext provides a submission queue for asycnronous I/O operations to block devices within the Linux kernel.

[src]

Create a new AioContext that is driven by the provided event loop.

Params

  • nr: Number of submission slots fro IO requests

[src]

Initiate an asynchronous read operation on the given file descriptor for reading data from the provided absolute file offset into the buffer. The buffer also determines the number of bytes to be read, which should be a multiple of the underlying device block size.

[src]

Initiate an asynchronous write operation on the given file descriptor for writing data to the provided absolute file offset from the buffer. The buffer also determines the number of bytes to be written, which should be a multiple of the underlying device block size.