Enum mpeg2ts_reader::demultiplex::FilterRequest
source · pub enum FilterRequest<'a, 'buf> {
ByPid(Pid),
ByStream {
program_pid: Pid,
stream_type: StreamType,
pmt: &'a PmtSection<'buf>,
stream_info: &'a StreamInfo<'buf>,
},
Pmt {
pid: Pid,
program_number: u16,
},
Nit {
pid: Pid,
},
}
Expand description
Request that may be submitted to a
DemuxContext::construct()
implementation.
Variants§
ByPid(Pid)
requests a filter implementation for handling a PID contained in the transport stream that was not announced via other means (PAT/PMT).
ByStream
Fields
§
stream_type: StreamType
The type of the stream to be handled
§
pmt: &'a PmtSection<'buf>
The full PmtSection defining the stream needing to he handled
§
stream_info: &'a StreamInfo<'buf>
the PMT stream information for the specific stream being handled (which will be one
of the values inside the pmt
which is also provided.
requests a filter for the stream with the given details which has just been discovered within a Program Map Table section.
Pmt
Fields
Requests a filter implementation for handling Program Map Table sections
Nit
requests a filter implementation to handle packets containing Network Information Table data
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'buf> RefUnwindSafe for FilterRequest<'a, 'buf>
impl<'a, 'buf> Send for FilterRequest<'a, 'buf>
impl<'a, 'buf> Sync for FilterRequest<'a, 'buf>
impl<'a, 'buf> Unpin for FilterRequest<'a, 'buf>
impl<'a, 'buf> UnwindSafe for FilterRequest<'a, 'buf>
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