mtcp provides a “blocking” implementation of TcpListener
and
TcpStream
with proper timeout and cancellation support. The
"blocking" I/O operations in mtcp are emulated via non-blocking
operations, using the mio
library.
Crates.io:
https://crates.io/crates/mtcp-rs
API Documentation:
https://docs.rs/mtcp-rs/latest/index.html