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]
P: SectionProcessor<Context = Ctx>,
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,
P: RefUnwindSafe,
impl<P> Send for SectionPacketConsumer<P> where
P: Send,
P: Send,
impl<P> Sync for SectionPacketConsumer<P> where
P: Sync,
P: Sync,
impl<P> Unpin for SectionPacketConsumer<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for SectionPacketConsumer<P> where
P: UnwindSafe,
P: 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>,