pub enum TlvError {
BufferTooShort(usize, usize),
EncodingError(Error),
DecodingError(Error),
FrameConstructionFailed(isize),
}Expand description
Generic errors that can occur during TLV field encoding and decoding.
Variants§
BufferTooShort(usize, usize)
TLV data buffer is too short to contain a valid TLV header or value.
Contains (actual_length, required_length).
EncodingError(Error)
Failed to encode/serialize TLV data using binary_sv2.
Contains the underlying binary_sv2::Error.
DecodingError(Error)
Failed to decode/deserialize TLV data using binary_sv2.
Contains the underlying binary_sv2::Error.
FrameConstructionFailed(isize)
Failed to construct a StandardSv2Frame from bytes.
Contains the error code returned by Sv2Frame::from_bytes.
Trait Implementations§
Source§impl From<TlvError> for ParserError
impl From<TlvError> for ParserError
impl Eq for TlvError
impl StructuralPartialEq for TlvError
Auto Trait Implementations§
impl Freeze for TlvError
impl RefUnwindSafe for TlvError
impl Send for TlvError
impl Sync for TlvError
impl Unpin for TlvError
impl UnwindSafe for TlvError
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