- 授权协议: MIT
- 开发语言: Rust
- 操作系统: Windows
- 软件首页: https://github.com/tickbh/event_rust
- 软件文档: https://github.com/tickbh/event_rust
软件介绍
event_rust 是一个 Rust 语言的异步事件库,与 libevent 操作方式类似
目前支持的平台有 windows 与 linux
要使用 `event_rust`,首先添加以下内容到 `Cargo.toml`:
```toml
[dependencies]
event_rust = "0.1.1"
```
一个简单的工程:
Add empty event just do
```rust
extern crate event_rust;
use event_rust::EventLoop;
fn main() {
let mut event_loop = EventLoop::new().unwrap();
event_loop.run();
}
```
## 特征
Event loop linux 通过 epoll 实现, windows 通过 select 实现.
非阻塞的tcp连接
高性能的定时器
