libevent-rs

Released API docs

Rust bindings to the [libevent] async I/O framework.

Example

```rust,no_run use libevent::{Base, Interval};

let mut base = Base::new();

let mut count: usize = 0;

let timer = Interval::new(Duration::from_secs(1));

base.spawn(timer, move |_event| { count += 1; println!("count: {}", count); })?;

base.run(); ```

System Requirements

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.