This crate is 2 functions that wrap the fnctl function from C to modify File Descriptors to be non-blocking. It also offers bindings to mio EventedFd to make construction easier.
To use this crate, well don't be on Windows. OSX/MacOS, Linux, FreeBSD, OpenBSD, etc. are supported. Add the below to your Cargo.toml
to use this crate.
[dependencies]
afio = "0.1"