Struct mio_aio::AioCb [−][src]
pub struct AioCb<'a> { /* fields omitted */ }
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::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.