use std::result::Result as StdResult;
pub type Result<T> = StdResult<T, Error>;
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum Error {
#[error("wrong number of bytes to construct Prefix")]
PrefixByteLength,
#[error("prefix characters may only be 7-bit ASCII values of 2-7,a-z,A-Z")]
InvalidPrefix {
valid_until: usize,
},
#[error("attempted to deserialize OID without a prefix")]
MissingPrefix,
#[error("deserialize OID without a separator")]
MissingSeparator,
#[error("attempted to deserialize OID without a value")]
MissingValue,
#[error("UUID error: {0}")]
Uuid(#[from] uuid::Error),
#[error("base32hex Decode error: {0}")]
Base32Decode(#[from] data_encoding::DecodeError),
}