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
Examples:
https://github.com/dEajL3kA/mtcp/tree/master/examples
Discuss:
https://users.rust-lang.org/t/87983