Low-level non-blocking I/O and event notification for Rust.
open sourceMITfree
Mio (Metal I/O) is a fast, low-level Rust library for non-blocking I/O and event notification, with as little overhead as possible over each operating system's event system (on Windows, the wepoll approach through AFD). You register sockets with a Poll and wait for readiness events. Its README points people who want something easier to get started with to Tokio.
Problems it solves
- build my own event loop over non-blocking sockets in Rust
- wait for socket readiness across Linux, macOS and Windows from one API in Rust
- a minimal I/O layer for a custom Rust async runtime
Features
- non-blocking TCP, UDP and Unix sockets
- readiness event polling over the OS event system
- Linux, macOS, iOS, Android, the BSDs, Solaris, Windows, Wine and WASI
Limitations
- Low level by design: its makers suggest Tokio for anything easier to get started with.1
Alternatives
The same job
These do what Mio does.
- Tokio A runtime for writing reliable asynchronous applications with Rust
