pub struct LioCb<'a> { /* private fields */ }
Expand description

A collection of multiple asynchronous I/O operations

Implementations

Submit an LioCb to the aio(4) subsystem.

If the return value is LioError::EAGAIN, then no operations were enqueued due to system resource limitations. The application should free up resources and try again. If the return value is LioError::EINCOMPLETE, then some operations were enqueued, but others were not, due to system resource limitations. The application should wait for notification that the enqueued operations are complete, then resubmit the others with resubmit. If the return value is LioError::EIO, then some operations have failed to enqueue, and cannot be resubmitted. The application should wait for notification that the enqueued operations are complete, then examine the result of each operation to determine the problem.

Resubmit an LioCb if it is incomplete.

If submit returns LioError::EINCOMPLETE, then some operations may not have been submitted. This method will collect status for any completed operations, then resubmit the others.

lio_listio

Consume an LioCb and collect its operations’ results.

An iterator over all operations’ results will be supplied to the callback function.

Trait Implementations

Formats the value using the given formatter. Read more

Register self with the given Registry instance. Read more

Re-register self with the given Registry instance. Read more

Deregister self from the given Registry instance. Read more

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.