pub struct CitSection<'a> {
pub private_indicator: bool,
pub service_id: u16,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub transport_stream_id: u16,
pub original_network_id: u16,
pub prepend_strings: DvbText<'a>,
pub crid_entries: Vec<CridEntry<'a>>,
}Expand description
Content Identifier Table (ETSI TS 102 323 v1.4.1 §12.2, Table 119).
The crid_entries loop is unfolded into typed CridEntry instances.
The prepend_strings block is kept as a raw byte slice (flat array of
null-terminated fragments with no per-entry sub-structure to type).
Fields§
§private_indicator: boolprivate_indicator bit from byte 1.
service_id: u16service_id — identifies the container this section belongs to
(table_id_extension, bytes 3-4).
version_number: u85-bit version_number.
current_next_indicator: boolcurrent_next_indicator bit.
section_number: u8Section counter within the sub-table.
last_section_number: u8Final section number in the sub-table.
transport_stream_id: u16transport_stream_id of the carrying TS.
original_network_id: u16original_network_id of the originating network.
prepend_strings: DvbText<'a>Prepend-string block (null-terminated fragments addressed by index), decoded as DVB text.
crid_entries: Vec<CridEntry<'a>>CRID entry loop — unfolded per Table 119.
Implementations§
Source§impl<'a> CitSection<'a>
impl<'a> CitSection<'a>
Sourcepub fn prepend_string(&self, index: u8) -> Option<&[u8]>
pub fn prepend_string(&self, index: u8) -> Option<&[u8]>
Resolve a prepend string by its prepend_string_index.
Returns None if index is out of range. The block is a sequence of
null-terminated fragments; index 0 is the first fragment, index 1 the
second, etc. The returned slice includes everything up to (but not
including) the terminating NUL byte; an empty slice means the index
points to an empty or immediately-terminated fragment.
Trait Implementations§
Source§impl<'a> Clone for CitSection<'a>
impl<'a> Clone for CitSection<'a>
Source§fn clone(&self) -> CitSection<'a>
fn clone(&self) -> CitSection<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for CitSection<'a>
impl<'a> Debug for CitSection<'a>
impl<'a> Eq for CitSection<'a>
Source§impl<'a> From<CitSection<'a>> for AnyTableSection<'a>
impl<'a> From<CitSection<'a>> for AnyTableSection<'a>
Source§fn from(t: CitSection<'a>) -> Self
fn from(t: CitSection<'a>) -> Self
Source§impl<'a> Parse<'a> for CitSection<'a>
impl<'a> Parse<'a> for CitSection<'a>
Source§impl<'a> PartialEq for CitSection<'a>
impl<'a> PartialEq for CitSection<'a>
Source§fn eq(&self, other: &CitSection<'a>) -> bool
fn eq(&self, other: &CitSection<'a>) -> bool
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for CitSection<'a>
impl<'a> Serialize for CitSection<'a>
Source§impl Serialize for CitSection<'_>
impl Serialize for CitSection<'_>
Source§type Error = Error
type Error = Error
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
serialize_into will write.impl<'a> StructuralPartialEq for CitSection<'a>
Source§impl<'a> TableDef<'a> for CitSection<'a>
impl<'a> TableDef<'a> for CitSection<'a>
Source§impl<'a> Yokeable<'a> for CitSection<'static>
impl<'a> Yokeable<'a> for CitSection<'static>
Source§type Output = CitSection<'a>
type Output = CitSection<'a>
Self with the 'static replaced with 'a, i.e. Self<'a>