poller 0.2.0

File I/O events library for Rust.
Documentation
  • Coverage
  • 86.11%
    31 out of 36 items documented2 out of 21 items with examples
  • Size
  • Source code size: 16.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • varphone

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);
    }
}