pub struct Cat<'a> {
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub descriptors: DescriptorLoop<'a>,
}Expand description
Conditional Access Table.
Fields§
§version_number: u85-bit version_number from the section header.
current_next_indicator: boolcurrent_next_indicator bit.
section_number: u8section_number in the sub-table sequence (typically 0 — single-section).
last_section_number: u8last_section_number (typically 0).
descriptors: DescriptorLoop<'a>Descriptor loop (byte 8 → CRC), preserved verbatim. ISO/IEC 13818-1
§2.4.4.6 permits descriptors other than CA in this loop; keeping the loop
raw makes parse → serialize identity hold for all of them. Serializes as
the typed descriptor sequence; .raw() yields the wire bytes. Use
Cat::ca_descriptors for the typed CA (tag 0x09) view.
Implementations§
Source§impl<'a> Cat<'a>
impl<'a> Cat<'a>
Sourcepub fn ca_descriptors(&self) -> Vec<CatCaEntry>
pub fn ca_descriptors(&self) -> Vec<CatCaEntry>
Typed view of the CA descriptors (tag 0x09) in the descriptor loop. Non-CA descriptors are skipped; a truncated trailing descriptor ends the walk.
Trait Implementations§
impl<'a> Eq for Cat<'a>
Source§impl Serialize for Cat<'_>
impl Serialize for Cat<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for Cat<'a>
Auto Trait Implementations§
impl<'a> Freeze for Cat<'a>
impl<'a> RefUnwindSafe for Cat<'a>
impl<'a> Send for Cat<'a>
impl<'a> Sync for Cat<'a>
impl<'a> Unpin for Cat<'a>
impl<'a> UnsafeUnpin for Cat<'a>
impl<'a> UnwindSafe for Cat<'a>
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
Mutably borrows from an owned value. Read more