1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use std; use tag::Tag; #[derive(Debug)] pub enum Error { TagNotStrictlyIncreasing(Tag), EncodingFailure(std::io::Error), } impl From<std::io::Error> for Error { fn from(err: std::io::Error) -> Self { Error::EncodingFailure(err) } }