[][src]Enum red_asn1::Error

pub enum Error {
    EmptyTag(TagClass),
    NotEnoughTagOctets(TagClass),
    UnmatchedTag(TagClass),
    LengthEmpty,
    NotEnoughLengthOctects,
    NoValue,
    NoComponent,
    SequenceFieldError(StringStringBox<Error>),
    SequenceError(StringBox<Error>),
    NoDataForLength,
    NoAllDataConsumed,
    IncorrectValue(String),
    Utf8Error,
    AsciiError,
    ParseIntError,
    ImplementationError(String),
    ConstraintError(String),
}

Error in ASN1-DER parse/build operations

Variants

EmptyTag(TagClass)

Tag cannot be parsed because there are no data

NotEnoughTagOctets(TagClass)

All data was consumed but tag length octets did not finished (high tag number form)

UnmatchedTag(TagClass)

Tag parsed is not the expected for the type

LengthEmpty

No length was provided

NotEnoughLengthOctects

The size of the length is higher than the available octets

NoValue

No value was provided to build

NoComponent

No found component with the identifier specified

SequenceFieldError(StringStringBox<Error>)

Error in a field of a sequence

SequenceError(StringBox<Error>)

Error while processing a sequence

NoDataForLength

There are no enough data provided for the length specified

NoAllDataConsumed

There are octets which were not consumed in decoding

IncorrectValue(String)

Problem with received value, such as format or expected length

Utf8Error

Error formating non-utf8 characters

AsciiError

Error formating non-utf8 characters

ParseIntError

Error parsing to int

ImplementationError(String)

Error in value due to limitation of the implementation

ConstraintError(String)

Error in value due to a constraint in the type

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl From<FromUtf8Error> for Error[src]

impl From<ParseIntError> for Error[src]

impl From<ToAsciiCharError> for Error[src]

impl From<Utf8Error> for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.