Macro utils_results::io_err [−][src]
macro_rules! io_err { ($($kind : ident => $errkind : ty $(,) ?) *) => { ... }; }
Expand description
matching io::Error and Master Error to use casting error macros
io_to_err!(file.seek(SeekFrom::End(0)))?; // <- io::Error to err err_to_io!(my_seek(0))?; // <- err to io::Error
io_err! { // std::io::ErrorKind => err::MyError UnexpectedEof => err::MyError1 Interrupted => err::MyError2 }