get_errno

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

Example

```rust use std::io::Error; use geterrno::geterrno;

println!("{}", geterrno(&Error::fromos_error(47))); // Some(47)

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

Status

Experimental

License

MIT