get_errno 0.0.3

Extracting errno from std::io::Error
docs.rs failed to build get_errno-0.0.3
Please check build logs and if you believe this is docs.rs' fault, report into this issue report.

get_errno

A way to extract errno from std::io::Error

Example

use std::io::Error;
use get_errno::get_errno;

println!("{}", get_errno(&Error::from_os_error(47)));
// Some(47)

println!("{}", get_errno(&Error::new(ErrorKind::Other, "description", None)));
// None

Status

Experimental

License

MIT