Struct mpeg2ts_reader::psi::SectionPacketConsumer
source · pub struct SectionPacketConsumer<P>where
P: SectionProcessor,{ /* private fields */ }
Expand description
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§
source§impl<P, Ctx> SectionPacketConsumer<P>where
P: SectionProcessor<Context = Ctx>,
impl<P, Ctx> SectionPacketConsumer<P>where
P: SectionProcessor<Context = Ctx>,
sourcepub fn new(parser: P) -> SectionPacketConsumer<P>
pub fn new(parser: P) -> SectionPacketConsumer<P>
Construct a new instance that will delegate processing of section data found in TS packet
payloads to the given SectionProcessor
instance.
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§
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