summaryrefslogtreecommitdiffstats
path: root/third_party/rust/devd-rs/examples/main.rs
blob: fee8612f1e6b5da5bf93d01f7a53226515be44a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extern crate devd_rs;

use devd_rs::*;

fn main() {
    let mut ctx = Context::new().unwrap();
    loop {
        if let Ok(ev) = ctx.wait_for_event(1000) {
            println!("{:?}", ev);
        }
    }
}