pub struct CatSection<'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
CatSection::ca_descriptors for the typed CA (tag 0x09) view.
Implementations§
Source§impl<'a> CatSection<'a>
impl<'a> CatSection<'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§
Source§impl<'a> Clone for CatSection<'a>
impl<'a> Clone for CatSection<'a>
Source§fn clone(&self) -> CatSection<'a>
fn clone(&self) -> CatSection<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CatSection<'a>
impl<'a> Debug for CatSection<'a>
Source§impl<'a> Default for CatSection<'a>
impl<'a> Default for CatSection<'a>
Source§fn default() -> CatSection<'a>
fn default() -> CatSection<'a>
Returns the “default value” for a type. Read more
impl<'a> Eq for CatSection<'a>
Source§impl<'a> From<CatSection<'a>> for AnyTableSection<'a>
impl<'a> From<CatSection<'a>> for AnyTableSection<'a>
Source§fn from(t: CatSection<'a>) -> Self
fn from(t: CatSection<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for CatSection<'a>
impl<'a> Parse<'a> for CatSection<'a>
Source§impl<'a> PartialEq for CatSection<'a>
impl<'a> PartialEq for CatSection<'a>
Source§fn eq(&self, other: &CatSection<'a>) -> bool
fn eq(&self, other: &CatSection<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for CatSection<'a>
impl<'a> Serialize for CatSection<'a>
Source§impl Serialize for CatSection<'_>
impl Serialize for CatSection<'_>
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 CatSection<'a>
Source§impl<'a> Table<'a> for CatSection<'a>
impl<'a> Table<'a> for CatSection<'a>
Source§impl<'a> TableDef<'a> for CatSection<'a>
impl<'a> TableDef<'a> for CatSection<'a>
Source§impl<'a> Yokeable<'a> for CatSection<'static>
impl<'a> Yokeable<'a> for CatSection<'static>
Source§type Output = CatSection<'a>
type Output = CatSection<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for CatSection<'a>
impl<'a> RefUnwindSafe for CatSection<'a>
impl<'a> Send for CatSection<'a>
impl<'a> Sync for CatSection<'a>
impl<'a> Unpin for CatSection<'a>
impl<'a> UnsafeUnpin for CatSection<'a>
impl<'a> UnwindSafe for CatSection<'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