4 releases
0.2.0 | Aug 14, 2020 |
---|---|
0.1.2 | Apr 1, 2020 |
0.1.1 | Mar 24, 2020 |
0.1.0 | Mar 23, 2020 |
#1703 in Embedded development
30 downloads per month
Used in 2 crates
11KB
239 lines
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);
}
}
Dependencies
~44KB