Struct mpeg2ts_reader::psi::DedupSectionSyntaxPayloadParser [−][src]
pub struct DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: SectionSyntaxPayloadParser, { /* fields omitted */ }A wrapper around some other implementation of SectionSyntaxPayloadParser that passes-through
section data, unless the TableSyntaxHeader indicates a version_number which is the same as
the last data that was passed though.
This avoids the underlying code needing to re-parse duplicate copies of the section, which are usually inserted periodically in the Transport Stream.
Implementations
impl<SSPP> DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: SectionSyntaxPayloadParser, [src]
SSPP: SectionSyntaxPayloadParser,
pub fn new(inner: SSPP) -> DedupSectionSyntaxPayloadParser<SSPP>[src]
Wraps the given SectionSyntaxPayloadParser in a new DedupSectionSyntaxPayloadParser
instance.
Trait Implementations
impl<SSPP> SectionSyntaxPayloadParser for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: SectionSyntaxPayloadParser, [src]
SSPP: SectionSyntaxPayloadParser,
type Context = SSPP::Context
The type of the context object passed to all methods
fn start_syntax_section<'a>(
&mut self,
ctx: &mut Self::Context,
header: &SectionCommonHeader,
table_syntax_header: &TableSyntaxHeader<'a>,
data: &'a [u8]
)[src]
&mut self,
ctx: &mut Self::Context,
header: &SectionCommonHeader,
table_syntax_header: &TableSyntaxHeader<'a>,
data: &'a [u8]
)
fn continue_syntax_section<'a>(
&mut self,
ctx: &mut Self::Context,
data: &'a [u8]
)[src]
&mut self,
ctx: &mut Self::Context,
data: &'a [u8]
)
fn reset(&mut self)[src]
Auto Trait Implementations
impl<SSPP> RefUnwindSafe for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: RefUnwindSafe,
SSPP: RefUnwindSafe,
impl<SSPP> Send for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: Send,
SSPP: Send,
impl<SSPP> Sync for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: Sync,
SSPP: Sync,
impl<SSPP> Unpin for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: Unpin,
SSPP: Unpin,
impl<SSPP> UnwindSafe for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: UnwindSafe,
SSPP: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,