pub enum TlvDecodeErrorCtx {
    Length(usizeusize),
    ValueType(u32, &'static [u32]),
    ValueLength(usizeusize),
    ValueContent(Box<TlvDecodeError>),
}
Expand description

The cause of error to decode given array as TLV data.

Variants

Length(usizeusize)

Tuple Fields

0: usize

The lengh of available elements in array.

1: usize

The length expected at least.

Insufficient length of available elements in array.

ValueType(u32, &'static [u32])

Tuple Fields

0: u32

The value in type field.

1: &'static [u32]

The allowed types.

Invalid value in type field.

ValueLength(usizeusize)

Tuple Fields

0: usize

The value in length field.

1: usize

The actual length of available elements in array.

Invalid value in length field.

ValueContent(Box<TlvDecodeError>)

Invalid data in value field.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.