Struct mpeg2ts_reader::demultiplex::PmtPacketFilter
source · pub struct PmtPacketFilter<Ctx: DemuxContext + 'static> { /* private fields */ }Expand description
PacketFilter implementation which will insert some other PacketFilter into the Demultiplex
instance for each sub-stream listed in one of the stream’s PMT-sections.
The particular PacketFilter to be inserted is determined by querying
DemuxContxt::construct(), passing a
FilterRequest::ByStream request.
Implementations§
source§impl<Ctx: DemuxContext> PmtPacketFilter<Ctx>
impl<Ctx: DemuxContext> PmtPacketFilter<Ctx>
sourcepub fn new(pid: Pid, program_number: u16) -> PmtPacketFilter<Ctx>
pub fn new(pid: Pid, program_number: u16) -> PmtPacketFilter<Ctx>
creates a new PmtPacketFilter for PMT sections in packets with the given Pid, and for
the given program number.
Trait Implementations§
source§impl<Ctx: DemuxContext> PacketFilter for PmtPacketFilter<Ctx>
impl<Ctx: DemuxContext> PacketFilter for PmtPacketFilter<Ctx>
Auto Trait Implementations§
impl<Ctx> RefUnwindSafe for PmtPacketFilter<Ctx>where
Ctx: RefUnwindSafe,
impl<Ctx> Send for PmtPacketFilter<Ctx>where
Ctx: Send,
impl<Ctx> Sync for PmtPacketFilter<Ctx>where
Ctx: Sync,
impl<Ctx> Unpin for PmtPacketFilter<Ctx>where
Ctx: Unpin,
impl<Ctx> UnwindSafe for PmtPacketFilter<Ctx>where
Ctx: 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