proxmox-backup/qemu-io/src/aio_context.rs
Wolfgang Bumiller 8bf7342c92 add qemu-io crate, AioContext reactor helper
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-05-16 11:59:55 +02:00

12 lines
462 B
Rust

//! Provides a handle to an AioContext.
#[cfg(feature="standalone")]
mod standalone;
#[cfg(feature="standalone")]
pub use standalone::AioContext;
// TODO: Add the non-standalone variant to be linked with Qemu:
// The AioContext struct should provide a high-level version of `set_fd_handler` with the same
// interface the standalone version provides out of the box (transparently turning closures into
// `extern "C" fn(opaque: *const c_void)` calls.