| Crates.io | get_errno |
| lib.rs | get_errno |
| version | 0.0.3 |
| created_at | 2015-02-23 23:39:09.647222+00 |
| updated_at | 2015-12-11 23:58:51.47213+00 |
| description | Extracting errno from std::io::Error |
| homepage | |
| repository | https://github.com/jstasiak/rust-get_errno |
| max_upload_size | |
| id | 1457 |
| size | 1,840 |
A way to extract
errnofromstd::io::Error
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
Experimental
MIT