3 releases
Uses old Rust 2015
0.0.3 | Feb 24, 2015 |
---|---|
0.0.2 | Feb 23, 2015 |
0.0.1 | Feb 23, 2015 |
#11 in #errno
2KB
get_errno
A way to extract
errno
fromstd::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
Dependencies
~5MB
~90K SLoC