get_errno

Crates.ioget_errno
lib.rsget_errno
version0.0.3
sourcesrc
created_at2015-02-23 23:39:09.647222
updated_at2015-12-11 23:58:51.47213
descriptionExtracting errno from std::io::Error
homepage
repositoryhttps://github.com/jstasiak/rust-get_errno
max_upload_size
id1457
size1,840
Jakub Stasiak (jstasiak)

documentation

README

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

Commit count: 6

cargo fmt