Trait tokio::io::bsd::AioSource[][src]

pub trait AioSource {
    fn register(&mut self, kq: RawFd, token: usize);
fn deregister(&mut self); }
This is supported on FreeBSD and crate feature net only.
Expand description

Like mio::event::Source, but for POSIX AIO only.

Tokio’s consumer must pass an implementor of this trait to create a Aio object.

Required methods

Registers this AIO event source with Tokio’s reactor.

Deregisters this AIO event source with Tokio’s reactor.

Implementors