poller

Crates.iopoller
lib.rspoller
version0.2.0
sourcesrc
created_at2020-03-23 09:09:46.73016
updated_at2020-08-14 08:04:54.046128
descriptionFile I/O events library for Rust.
homepagehttps://github.com/varphone/poller-rs
repository
max_upload_size
id221690
size16,099
Varphone Wong (varphone)

documentation

https://docs.rs/poller

README

poller-rs

File I/O events library for Rust.

Examples

use poller::{Events, Poller};

fn main() {
    let mut poller = Poller::new();
    poller.add(0, Events::new().with_read(), None);
    for (fd, events, ctx) in poller.pull_events(1000).unwrap().iter() {
        println!("Fd={}, Events={}, Context={:?}", fd, events, ctx);
    }
}
Commit count: 0

cargo fmt