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.
Tuple Fields
ValueType(u32, &'static [u32])
Invalid value in type field.
ValueLength(usize, usize)
Invalid value in length field.
Tuple Fields
ValueContent(Box<TlvDecodeError>)
Invalid data in value field.
Trait Implementations§
Source§impl Clone for TlvDecodeErrorCtx
impl Clone for TlvDecodeErrorCtx
Source§fn clone(&self) -> TlvDecodeErrorCtx
fn clone(&self) -> TlvDecodeErrorCtx
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TlvDecodeErrorCtx
impl Debug for TlvDecodeErrorCtx
Source§impl PartialEq for TlvDecodeErrorCtx
impl PartialEq for TlvDecodeErrorCtx
impl Eq for TlvDecodeErrorCtx
impl StructuralPartialEq for TlvDecodeErrorCtx
Auto Trait Implementations§
impl Freeze for TlvDecodeErrorCtx
impl RefUnwindSafe for TlvDecodeErrorCtx
impl Send for TlvDecodeErrorCtx
impl Sync for TlvDecodeErrorCtx
impl Unpin for TlvDecodeErrorCtx
impl UnwindSafe for TlvDecodeErrorCtx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more