#[non_exhaustive]pub struct SectionKey {
pub pid: Pid,
pub table_id: u8,
pub section_number: u8,
}Expand description
The key one scheduled section is stored under: the PID it is carried on
and its identity inside that PID — table_id plus section_number
(ISO/IEC 13818-1 §2.4.4.4 / EN 300 468 §5.2). Several distinct tables
share a PID by spec (TDT/TOT both on 0x0014, SDT/BAT both on 0x0011,
EIT present/following vs. schedule sub-tables on 0x0012), and a long
table spans several sections told apart by section_number, so neither
PID alone nor PID plus table_id names a section.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pid: PidThe PID the section is carried on.
table_id: u8table_id (ISO/IEC 13818-1 §2.4.4.1).
section_number: u8section_number: the section’s position in its table.
Trait Implementations§
Source§impl Clone for SectionKey
impl Clone for SectionKey
impl Copy for SectionKey
Source§impl Debug for SectionKey
impl Debug for SectionKey
impl Eq for SectionKey
Source§impl Hash for SectionKey
impl Hash for SectionKey
Source§impl Ord for SectionKey
impl Ord for SectionKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SectionKey
impl PartialEq for SectionKey
Source§impl PartialOrd for SectionKey
impl PartialOrd for SectionKey
Source§impl Serialize for SectionKey
Available on crate feature serde only.
impl Serialize for SectionKey
Available on crate feature
serde only.impl StructuralPartialEq for SectionKey
Auto Trait Implementations§
impl Forget for SectionKey
impl Freeze for SectionKey
impl Move for SectionKey
impl RefUnwindSafe for SectionKey
impl Send for SectionKey
impl Sync for SectionKey
impl Unpin for SectionKey
impl UnsafeUnpin for SectionKey
impl UnwindSafe for SectionKey
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