use std::error::Error; use std::fmt::Display; use std::io::ErrorKind; pub type Res = Result>; pub fn boxed_error(msg: D) -> Box { Box::new(std::io::Error::new(ErrorKind::Other, msg.to_string())) }