pub trait AioSource {
    fn register(&mut self, kq: RawFd, token: usize);
    fn deregister(&mut self);
}
Available 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