Struct 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>

Source

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>

Source§

type Ctx = Ctx

The type of context-object used by the Demultiplex instance with which implementing PacketFilters will be collaborating.
Source§

fn consume(&mut self, ctx: &mut Self::Ctx, pk: &Packet<'_>)

Implements filter-specific packet processing logic.

Auto Trait Implementations§

§

impl<Ctx> Freeze for PmtPacketFilter<Ctx>

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.