1 2 3 4 5 6 7 8 9 10 11 12
pub type Result<Ok> = core::result::Result<Ok, Error>; #[derive(Debug)] pub enum Error { Io(std::io::Error), } impl From<std::io::Error> for Error { fn from(io_error: std::io::Error) -> Self { Self::Io(io_error) } }