Enum strict_encoding::TlvError [−][src]
pub enum TlvError {
Order {
read: u64,
max: u64,
},
Len {
expected: u64,
actual: u64,
},
Repeated(u64),
UnknownEvenType(u64),
}
Expand description
Possible errors during TLV extension encoding and decoding process
Variants
Order
Fields
read: u64
TLV type id read at the current position
max: u64
maximum value of TLV type id read previously
deterministic order of TLV records is broken: type {read} follows after type {max}
Len
Fields
expected: u64
TLV value length encoded in the TLV record
actual: u64
Actual remaining length of the TLV stream
incorrect length of TLV record value: expected {expected}, but only {actual} bytes read
Repeated(u64)
Tuple Fields
0: u64
repeated TLV record with id {0}
UnknownEvenType(u64)
Tuple Fields
0: u64
an unknown even TLV type {0}
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for TlvError
impl UnwindSafe for TlvError
Blanket Implementations
Mutably borrows from an owned value. Read more