pub struct Rct<'a> {
pub table_id_extension_flag: bool,
pub service_id: u16,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub year_offset: u16,
pub link_count: u8,
pub link_info_loop: &'a [u8],
pub descriptors: DescriptorLoop<'a>,
}Expand description
Related Content Table (ETSI TS 102 323 v1.4.1 §10.4.2).
The link_info_loop field holds the raw bytes of the entire
for (j=0; j<link_count; j++) block (all link entries concatenated).
The descriptors field holds the raw bytes of the trailing descriptor loop.
Neither is parsed further; the integrator walks them using the spec tables.
Fields§
§table_id_extension_flag: booltable_id_extension_flag (bit 6 of byte 1).
false: service_id identifies the service this sub-table belongs to.
true: all sections relate to a single service; service_id is ignored.
service_id: u16service_id — table_id_extension field (bytes 3-4).
version_number: u85-bit version_number (bits 5-1 of byte 5).
current_next_indicator: boolcurrent_next_indicator (bit 0 of byte 5).
section_number: u8section_number (byte 6).
last_section_number: u8last_section_number (byte 7).
year_offset: u16year_offset — reference year (bytes 8-9).
Binary encoding, e.g. 0x07D3 = 2003. Date values inside the section
are relative to this year.
link_count: u8Number of link entries (link_count, byte 10).
link_info_loop: &'a [u8]Raw bytes of the entire link_info loop
(for j=0; j<link_count block from §10.4.2 Table 109).
Each entry begins with a 2-byte header: reserved(4) | link_info_length(12).
The following link_info_length bytes contain the link_info() payload
(§10.4.3 Table 110). The integrator is responsible for further parsing.
descriptors: DescriptorLoop<'a>Trailing descriptor loop
(for k=0; k<descriptor_loop_length from §10.4.2 Table 109).
Serializes as the typed descriptor sequence; .raw() yields the bytes.
Trait Implementations§
impl<'a> Eq for Rct<'a>
Source§impl Serialize for Rct<'_>
impl Serialize for Rct<'_>
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.