Enum simple_asn1::ASN1DecodeErr [−][src]
pub enum ASN1DecodeErr {
EmptyBuffer,
BadBooleanLength(usize),
LengthTooLarge(usize),
UTF8DecodeFailure(Utf8Error),
PrintableStringDecodeFailure,
InvalidDateValue(String),
InvalidBitStringLength(isize),
InvalidClass(u8),
Incomplete,
Overflow,
}
Expand description
An error that can arise decoding ASN.1 primitive blocks.
Variants
BadBooleanLength(usize)
Tuple Fields of BadBooleanLength
0: usize
LengthTooLarge(usize)
Tuple Fields of LengthTooLarge
0: usize
UTF8DecodeFailure(Utf8Error)
Tuple Fields of UTF8DecodeFailure
0: Utf8Error
InvalidDateValue(String)
Tuple Fields of InvalidDateValue
0: String
InvalidBitStringLength(isize)
Tuple Fields of InvalidBitStringLength
0: isize
InvalidClass(u8)
Not a valid ASN.1 class
Tuple Fields of InvalidClass
0: u8
Expected more input
Invalid ASN.1 input can lead to this error.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ASN1DecodeErr
impl Send for ASN1DecodeErr
impl Sync for ASN1DecodeErr
impl Unpin for ASN1DecodeErr
impl UnwindSafe for ASN1DecodeErr
Blanket Implementations
Mutably borrows from an owned value. Read more