Trait tokio::io::bsd::AioSource

source ·
pub trait AioSource {
    // Required methods
    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§

source

fn register(&mut self, kq: RawFd, token: usize)

Registers this AIO event source with Tokio’s reactor.

source

fn deregister(&mut self)

Deregisters this AIO event source with Tokio’s reactor.

Implementors§