#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Error {
Limit,
Allocation,
Malformed,
Trailing,
Identity,
}
impl core::fmt::Display for Error {
fn fmt(&self, formatter: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
formatter.write_str(match self {
Self::Limit => "wire limit",
Self::Allocation => "wire allocation",
Self::Malformed => "wire malformed",
Self::Trailing => "wire trailing",
Self::Identity => "wire identity",
})
}
}
impl core::error::Error for Error {}