pub struct LioCbBuilder<'a>(_);
Expand description

Used to construct LioCb.

LioCb uses the builder pattern. An LioCbBuilder is the only way to construct an LioCb.

LioCb

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.

Trait Implementations

Formats the value using the given formatter. 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.