Enum asn1::ParseErrorKind[][src]

pub enum ParseErrorKind {
    InvalidValue,
    UnexpectedTag {
        actual: u8,
    },
    ShortData,
    IntegerOverflow,
    ExtraData,
    InvalidSetOrdering,
    EncodedDefault,
}
Expand description

ParseError are returned when there is an error parsing the ASN.1 data.

Variants

InvalidValue

Something about the value was invalid.

UnexpectedTag

An unexpected tag was encountered.

Fields of UnexpectedTag

actual: u8
ShortData

There was not enough data available to complete parsing.

IntegerOverflow

An internal computation would have overflowed.

ExtraData

There was extraneous data in the input.

InvalidSetOrdering

Elements of a set were not lexicographically sorted.

EncodedDefault

An OPTIONAL DEFAULT was written with a default value.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.