pub struct CrcCheckWholeSectionSyntaxPayloadParser<P>where
P: WholeSectionSyntaxPayloadParser,{ /* private fields */ }
Expand description
An implementation of WholeSectionSyntaxPayloadParser
which will delegate to another
instance of WholeSectionSyntaxPayloadParser
only if the CRC of the section data is
correct.
Implementations§
source§impl<P> CrcCheckWholeSectionSyntaxPayloadParser<P>where
P: WholeSectionSyntaxPayloadParser,
impl<P> CrcCheckWholeSectionSyntaxPayloadParser<P>where
P: WholeSectionSyntaxPayloadParser,
sourcepub fn new(inner: P) -> CrcCheckWholeSectionSyntaxPayloadParser<P>
pub fn new(inner: P) -> CrcCheckWholeSectionSyntaxPayloadParser<P>
create a new CrcCheckWholeSectionSyntaxPayloadParser which wraps and delegates to the given
WholeSectionSyntaxPayloadParser
instance
Trait Implementations§
source§impl<P> WholeSectionSyntaxPayloadParser for CrcCheckWholeSectionSyntaxPayloadParser<P>where
P: WholeSectionSyntaxPayloadParser,
impl<P> WholeSectionSyntaxPayloadParser for CrcCheckWholeSectionSyntaxPayloadParser<P>where
P: WholeSectionSyntaxPayloadParser,
§type Context = <P as WholeSectionSyntaxPayloadParser>::Context
type Context = <P as WholeSectionSyntaxPayloadParser>::Context
Type of the context object that will be passed to all methods.
source§fn section<'a>(
&mut self,
ctx: &mut Self::Context,
header: &SectionCommonHeader,
table_syntax_header: &TableSyntaxHeader<'a>,
data: &'a [u8]
)
fn section<'a>( &mut self, ctx: &mut Self::Context, header: &SectionCommonHeader, table_syntax_header: &TableSyntaxHeader<'a>, data: &'a [u8] )
Method that will receive a complete PSI table section, where the
data
parameter will
be header.section_length
bytes longAuto Trait Implementations§
impl<P> RefUnwindSafe for CrcCheckWholeSectionSyntaxPayloadParser<P>where
P: RefUnwindSafe,
impl<P> Send for CrcCheckWholeSectionSyntaxPayloadParser<P>where
P: Send,
impl<P> Sync for CrcCheckWholeSectionSyntaxPayloadParser<P>where
P: Sync,
impl<P> Unpin for CrcCheckWholeSectionSyntaxPayloadParser<P>where
P: Unpin,
impl<P> UnwindSafe for CrcCheckWholeSectionSyntaxPayloadParser<P>where
P: UnwindSafe,
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