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

A single asynchronous I/O operation

Implementations

Wrapper around nix::sys::aio::AioCb.

Implements mio::Source. After creation, use mio::Source::register to connect to the event loop

Wraps nix::sys::aio::AioCb::from_fd.

Wraps nix::sys::aio::from_mut_slice

Not as useful as it sounds, because in typical mio use cases, the compiler can’t guarantee that the slice’s lifetime is respected.

Wraps nix::sys::aio::from_slice

Mostly useful for writing constant slices

Read the final result of the operation

Ask the operating system to cancel the operation

Most file systems on most operating systems don’t actually support cancellation; they’ll just return AIO_NOTCANCELED.

Retrieve the status of an in-progress or complete operation.

Not usually needed, since mio_aio always uses kqueue for notification.

Asynchronously fsync a file.

Asynchronously read from a file.

Asynchronously write to a file.

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.