#[non_exhaustive]pub enum DataUnitId {
EbuTeletextNonSubtitle,
EbuTeletextSubtitle,
InvertedTeletext,
Vps,
Wss,
ClosedCaptioning,
Monochrome422Samples,
Stuffing,
Reserved(u8),
UserDefined(u8),
}Expand description
A decoded data_unit_id (ETSI EN 301 775 §4.4.2, Table 3).
The named variants carry the typed payloads this crate decodes; everything
else falls into DataUnitId::Reserved or DataUnitId::UserDefined,
preserving the raw byte. Per Table 3 the spec action for the latter two is
“discard”.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EbuTeletextNonSubtitle
0x02 — EBU Teletext non-subtitle data.
EbuTeletextSubtitle
0x03 — EBU Teletext subtitle data.
InvertedTeletext
0xC0 — Inverted Teletext.
Vps
0xC3 — VPS (Video Programme System).
Wss
0xC4 — WSS (Wide Screen Signalling).
ClosedCaptioning
0xC5 — Closed Captioning (line 21, EIA-608 Rev A).
Monochrome422Samples
0xC6 — monochrome 4:2:2 luminance samples.
Stuffing
0xFF — stuffing (no data field).
Reserved(u8)
0x00–0x01, 0x04–0x7F, 0xC1, 0xC2, 0xC7–0xFE — reserved
for future use (Table 3: discard). Carries the raw data_unit_id.
UserDefined(u8)
0x80–0xBF — user defined (Table 3: discard). Carries the raw
data_unit_id.
Implementations§
Trait Implementations§
Source§impl Clone for DataUnitId
impl Clone for DataUnitId
Source§fn clone(&self) -> DataUnitId
fn clone(&self) -> DataUnitId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more