pub struct AitSection<'a> {
pub application_type: ApplicationType,
pub test_application_flag: bool,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub common_descriptors: DescriptorLoop<'a>,
pub applications: Vec<AitApplication<'a>>,
}Expand description
Application Information Table.
Fields§
§application_type: ApplicationType15-bit application_type (e.g. 0x0010 for HbbTV).
test_application_flag: boolTest application flag (bit 15 of the extension field).
version_number: u85-bit version_number.
current_next_indicator: boolcurrent_next_indicator bit.
section_number: u8section_number in the sub-table sequence.
last_section_number: u8last_section_number in the sub-table sequence.
common_descriptors: DescriptorLoop<'a>Raw common descriptor bytes.
Common descriptor loop. Serializes as the typed descriptor sequence;
.raw() yields the wire bytes.
applications: Vec<AitApplication<'a>>Applications in wire order.
Implementations§
Source§impl<'a> AitSection<'a>
impl<'a> AitSection<'a>
Sourcepub fn common_ait_descriptors(&self) -> AitDescriptorLoop<'a>
pub fn common_ait_descriptors(&self) -> AitDescriptorLoop<'a>
Walk the common descriptor loop in the AIT namespace.
Returns an AitDescriptorLoop that lazily decodes each entry as an
AnyAitDescriptor.
Trait Implementations§
Source§impl<'a> Clone for AitSection<'a>
impl<'a> Clone for AitSection<'a>
Source§fn clone(&self) -> AitSection<'a>
fn clone(&self) -> AitSection<'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 AitSection<'a>
impl<'a> Debug for AitSection<'a>
impl<'a> Eq for AitSection<'a>
Source§impl<'a> From<AitSection<'a>> for AnyTableSection<'a>
impl<'a> From<AitSection<'a>> for AnyTableSection<'a>
Source§fn from(t: AitSection<'a>) -> Self
fn from(t: AitSection<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for AitSection<'a>
impl<'a> Parse<'a> for AitSection<'a>
Source§impl<'a> PartialEq for AitSection<'a>
impl<'a> PartialEq for AitSection<'a>
Source§fn eq(&self, other: &AitSection<'a>) -> bool
fn eq(&self, other: &AitSection<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for AitSection<'a>
impl<'a> Serialize for AitSection<'a>
Source§impl Serialize for AitSection<'_>
impl Serialize for AitSection<'_>
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 AitSection<'a>
Source§impl<'a> TableDef<'a> for AitSection<'a>
impl<'a> TableDef<'a> for AitSection<'a>
Source§impl<'a> Yokeable<'a> for AitSection<'static>
impl<'a> Yokeable<'a> for AitSection<'static>
Source§type Output = AitSection<'a>
type Output = AitSection<'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 AitSection<'a>
impl<'a> RefUnwindSafe for AitSection<'a>
impl<'a> Send for AitSection<'a>
impl<'a> Sync for AitSection<'a>
impl<'a> Unpin for AitSection<'a>
impl<'a> UnsafeUnpin for AitSection<'a>
impl<'a> UnwindSafe for AitSection<'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