Skip to main content

Stream

Struct Stream 

Source
#[non_exhaustive]
pub struct Stream {
Show 13 fields pub track: String, pub class: Class, pub units: u64, pub quiet: Option<Duration>, pub resyncs: u64, pub discarded: u64, pub unconfirmed: u64, pub damaged: u64, pub unplaced: u64, pub refused: u64, pub continuity_count_error: u64, pub transport_error: u64, pub pts_error: u64,
}
Expand description

What one elementary stream delivered, lost, or could not verify. See Snapshot.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§track: String

The 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: Class

How this PID was classified. See Class.

§units: u64

Access 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: u64

Completed resyncs: the stream lost frame sync and locked onto a confirmed frame again. Each one is a gap in the audio.

§discarded: u64

Bytes thrown away scanning for sync, across every resync and any scan still in progress.

§unconfirmed: u64

Frames 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: u64

Damaged packets or PES refused whole on this PID. Export stays zero.

§unplaced: u64

Whole 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: u64

What 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: u64

This PID’s share of Snapshot::continuity_count_error.

§transport_error: u64

This PID’s share of Snapshot::transport_error.

§pts_error: u64

This PID’s share of Snapshot::pts_error.

Trait Implementations§

Source§

impl Clone for Stream

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Stream

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Stream

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Stream
where Stream: Default,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Stream

Source§

impl PartialEq for Stream

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Stream

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Stream

Auto Trait Implementations§

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
§

impl<T> CatalogExt for T
where T: Serialize + DeserializeOwned + Default + Clone + Send + Unpin + 'static,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more