Crates.io | poller |
lib.rs | poller |
version | 0.2.0 |
source | src |
created_at | 2020-03-23 09:09:46.73016 |
updated_at | 2020-08-14 08:04:54.046128 |
description | File I/O events library for Rust. |
homepage | https://github.com/varphone/poller-rs |
repository | |
max_upload_size | |
id | 221690 |
size | 16,099 |
File I/O events library for Rust.
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);
}
}