Skip to content

vaxpl/poller-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poller-rs

Build Status

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

About

File I/O events library for Rust.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages