Struct mpeg2ts_reader::psi::SectionPacketConsumer[][src]

pub struct SectionPacketConsumer<P> where
    P: SectionProcessor
{ /* fields omitted */ }

A type for locating the headers of PSI sections, which may be split across multiple TS packets, and passing each piece to the given SectionProcessor as it is discovered.

Implementations

impl<P, Ctx> SectionPacketConsumer<P> where
    P: SectionProcessor<Context = Ctx>, 
[src]

pub fn new(parser: P) -> SectionPacketConsumer<P>[src]

Construct a new instance that will delegate processing of section data found in TS packet payloads to the given SectionProcessor instance.

pub fn consume(&mut self, ctx: &mut Ctx, pk: &Packet<'_>)[src]

process the payload of the given TS packet, passing each piece of section data discovered to the SectionProcessor instance given at time of construction.

Auto Trait Implementations

impl<P> RefUnwindSafe for SectionPacketConsumer<P> where
    P: RefUnwindSafe

impl<P> Send for SectionPacketConsumer<P> where
    P: Send

impl<P> Sync for SectionPacketConsumer<P> where
    P: Sync

impl<P> Unpin for SectionPacketConsumer<P> where
    P: Unpin

impl<P> UnwindSafe for SectionPacketConsumer<P> where
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.