Enum asn1_cereal::err::DecodeError [] [src]

pub enum DecodeError {
    IO(Error),
    GreaterLen,
    SmallerLen,
    PrimIndef,
    TagTypeMismatch,
    ExplicitTag,
    IndefiniteLen,
    IndefiniteLenEnd,
    Custom(&'static str),
}

Errors that can occur while decoding an ASN.1 element.

Variants

Generic IO Error.

Child element(s) decoded to greater length than the parent's tag.

Child element(s) decoded to smaller length than the parent's tag.

Primitive value encoded with an indefinite length.

Decoded tag does not match the expected tag for this type.

An explicit tag appeared where an Implicit tag was expected.

Indefinite length encoding appeared when definite length encoding was expected.

Indefinite length encoding was started, but no terminator was found at the end.

Custom decoding error.

Trait Implementations

impl Debug for DecodeError
[src]

Formats the value using the given formatter.

impl From<Error> for DecodeError
[src]

Performs the conversion.