#[derive(Debug, Clone, Copy)]
pub enum Error {
OutOfSpec,
RequiresCompression,
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self)
}
}
impl From<std::io::Error> for Error {
fn from(_: std::io::Error) -> Self {
Error::OutOfSpec
}
}