Enum simple_asn1::ASN1DecodeErr
source · pub enum ASN1DecodeErr {
EmptyBuffer,
BadBooleanLength(usize),
LengthTooLarge(usize),
UTF8DecodeFailure(Utf8Error),
PrintableStringDecodeFailure,
InvalidDateValue(String),
}
Expand description
An error that can arise decoding ASN.1 primitive blocks.
Variants§
EmptyBuffer
BadBooleanLength(usize)
LengthTooLarge(usize)
UTF8DecodeFailure(Utf8Error)
PrintableStringDecodeFailure
InvalidDateValue(String)
Trait Implementations§
source§impl Clone for ASN1DecodeErr
impl Clone for ASN1DecodeErr
source§fn clone(&self) -> ASN1DecodeErr
fn clone(&self) -> ASN1DecodeErr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ASN1DecodeErr
impl Debug for ASN1DecodeErr
source§impl Display for ASN1DecodeErr
impl Display for ASN1DecodeErr
source§impl Error for ASN1DecodeErr
impl Error for ASN1DecodeErr
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting