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> Freeze for SectionPacketConsumer<P>where
P: Freeze,
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