Enum cdp_types::ParserError
source · pub enum ParserError {
LengthMismatch {
expected: usize,
actual: usize,
},
WrongMagic,
UnknownFramerate,
InvalidFixedBits,
Cea608AfterCea708,
ChecksumFailed,
SequenceCountMismatch,
}Expand description
Various possible errors when parsing data
Variants§
LengthMismatch
The length of the data does not match the length in the data
WrongMagic
Some magic byte/s do not have the correct value
UnknownFramerate
Unrecognied framerate value
InvalidFixedBits
Some ‘fixed’ bits did not have the correct value
Cea608AfterCea708
CEA-608 bytes were found after CEA-708 bytes
ChecksumFailed
Failed to validate the checksum
SequenceCountMismatch
Sequence count differs between the header and the footer. Usuall indicates this packet was spliced together incorrectly.
Trait Implementations§
source§impl Clone for ParserError
impl Clone for ParserError
source§fn clone(&self) -> ParserError
fn clone(&self) -> ParserError
Returns a copy 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 ParserError
impl Debug for ParserError
source§impl Display for ParserError
impl Display for ParserError
source§impl From<ParserError> for ParserError
impl From<ParserError> for ParserError
source§fn from(value: ParserError) -> Self
fn from(value: ParserError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ParserError
impl PartialEq for ParserError
source§fn eq(&self, other: &ParserError) -> bool
fn eq(&self, other: &ParserError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ParserError
impl Eq for ParserError
impl StructuralEq for ParserError
impl StructuralPartialEq for ParserError
Auto Trait Implementations§
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
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