#[non_exhaustive]pub struct Stream {}Expand description
What one elementary stream delivered, lost, or could not verify. See Snapshot.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.track: StringThe current or most recent MoQ track suffix for this PID (.avc3, .mp2, .ts, …),
or empty for a PID that publishes no track: one dropped, or MPEG-1/2 video refused and
read only for its clock. At export, the suffix an import of the output would give the PID.
class: ClassHow this PID was classified. See Class.
units: u64Access units the stream delivered: frames published for decoded media, whole PES or sections carried verbatim, and PES read on MPEG-1/2 video. At export, the PES or sections written for each frame.
quiet: Option<Duration>Transport time since the stream last delivered an access unit, or since the PMT
declared it, measured on the program clock (PCR): the one read at import, the one
written at export. None until the first PCR. Whole milliseconds in a report.
No threshold applies: a sparse stream such as SCTE-35 is legitimately quiet for seconds, so how long is too long is for whoever alarms to decide.
resyncs: u64Completed resyncs: the stream lost frame sync and locked onto a confirmed frame again. Each one is a gap in the audio.
discarded: u64Bytes thrown away scanning for sync, across every resync and any scan still in progress.
unconfirmed: u64Frames published that nothing vouched for: the offset came from a scan, or the bytes were joined onto a tail carried across a PES boundary, and no successor frame could confirm it. That substitutes audio rather than leaving a gap, which is why it is counted separately from a resync.
damaged: u64Damaged packets or PES refused whole on this PID. Export stays zero.
unplaced: u64Whole PES or sections, SI included, dropped because the program clock could not place them: before the first PCR, after the last with no interval to extrapolate from, or before the broadcast clock’s zero. Any PES lands before that zero while its stream is still behind a wrap the import’s first PTS already crossed. Export stays zero.
refused: u64What this PID lost to a route the import does not carry. Once for each time its stream
was refused: a listed stream the import cannot carry (an ambiguous 0x86 without a CUEI
registration, an Opus configuration it cannot map, any undecoded stream without the
mpegts catalog section or in a program with no PCR to place it by), or a whole-PES
stream with a clock field only the PTS and DTS of are rebased (ESCR, a
pack_header_field, a TREF), an unbounded non-video PES, or a header export refuses,
whose track ends and leaves the catalog. Once for each TS-scrambled packet on a carried
stream, which the raw lane could carry, and each PES-scrambled PES on one; the stream
resumes once it is clear. And once for
each packet on a PID no table claims (Snapshot::streams). Export stays zero.
continuity_count_error: u64This PID’s share of Snapshot::continuity_count_error.
transport_error: u64This PID’s share of Snapshot::transport_error.
pts_error: u64This PID’s share of Snapshot::pts_error.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stream
impl<'de> Deserialize<'de> for Stream
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Stream
impl StructuralPartialEq for Stream
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Stream
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
impl<T> CatalogExt for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.