[−][src]Struct mpeg2ts_reader::psi::SectionPacketConsumer
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.
Methods
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> Send for SectionPacketConsumer<P> where
P: Send,
P: Send,
impl<P> Sync for SectionPacketConsumer<P> where
P: Sync,
P: Sync,
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,