Rust 语言异步事件库 event_rust

码农软件 · 软件分类 · 常用工具包 · 2019-08-16 11:26:46

软件介绍

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连接

  • 高性能的定时器

本文地址:https://codercto.com/soft/d/12482.html

Python for Data Analysis

Python for Data Analysis

Wes McKinney / O'Reilly Media / 2012-11-1 / USD 39.99

Finding great data analysts is difficult. Despite the explosive growth of data in industries ranging from manufacturing and retail to high technology, finance, and healthcare, learning and accessing d......一起来看看 《Python for Data Analysis》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具