pub enum TlvDecodeErrorCtx {
Length(usize, usize),
ValueType(u32, &'static [u32]),
ValueLength(usize, usize),
ValueContent(Box<TlvDecodeError>),
}Expand description
The cause of error to decode given array as TLV data.
Variants
Length(usize, usize)
Insufficient length of available elements in array.
ValueType(u32, &'static [u32])
Invalid value in type field.
ValueLength(usize, usize)
Tuple Fields
0: usizeThe value in length field.
1: usizeThe actual length of available elements in array.
Invalid value in length field.
ValueContent(Box<TlvDecodeError>)
Invalid data in value field.
Trait Implementations
sourceimpl Clone for TlvDecodeErrorCtx
impl Clone for TlvDecodeErrorCtx
sourcefn clone(&self) -> TlvDecodeErrorCtx
fn clone(&self) -> TlvDecodeErrorCtx
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TlvDecodeErrorCtx
impl Debug for TlvDecodeErrorCtx
sourceimpl PartialEq<TlvDecodeErrorCtx> for TlvDecodeErrorCtx
impl PartialEq<TlvDecodeErrorCtx> for TlvDecodeErrorCtx
sourcefn eq(&self, other: &TlvDecodeErrorCtx) -> bool
fn eq(&self, other: &TlvDecodeErrorCtx) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TlvDecodeErrorCtx) -> bool
fn ne(&self, other: &TlvDecodeErrorCtx) -> bool
This method tests for !=.
impl Eq for TlvDecodeErrorCtx
impl StructuralEq for TlvDecodeErrorCtx
impl StructuralPartialEq for TlvDecodeErrorCtx
Auto Trait Implementations
impl RefUnwindSafe for TlvDecodeErrorCtx
impl Send for TlvDecodeErrorCtx
impl Sync for TlvDecodeErrorCtx
impl Unpin for TlvDecodeErrorCtx
impl UnwindSafe for TlvDecodeErrorCtx
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more