pub struct BatSection<'a> {
pub bouquet_id: u16,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub bouquet_descriptors: DescriptorLoop<'a>,
pub transport_streams: Vec<BatTransportStream<'a>>,
}Expand description
Bouquet Association Table.
Fields§
§bouquet_id: u16Bouquet identifier (table_id_extension at bytes 3-4).
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.
bouquet_descriptors: DescriptorLoop<'a>Raw bouquet-descriptor bytes (may contain bouquet_name_descriptor 0x47).
Bouquet descriptor loop. Serializes as the typed descriptor sequence;
.raw() yields the wire bytes.
transport_streams: Vec<BatTransportStream<'a>>Transport-stream loop entries in wire order.
Implementations§
Source§impl<'a> BatSection<'a>
impl<'a> BatSection<'a>
Sourcepub fn bouquet_name(&self) -> Option<String>
pub fn bouquet_name(&self) -> Option<String>
Walk the bouquet_descriptors looking for the first bouquet_name_descriptor
(tag 0x47). Returns the decoded UTF-8 name, or None if not present.
Trait Implementations§
Source§impl<'a> Clone for BatSection<'a>
impl<'a> Clone for BatSection<'a>
Source§fn clone(&self) -> BatSection<'a>
fn clone(&self) -> BatSection<'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 BatSection<'a>
impl<'a> Debug for BatSection<'a>
impl<'a> Eq for BatSection<'a>
Source§impl<'a> From<BatSection<'a>> for AnyTableSection<'a>
impl<'a> From<BatSection<'a>> for AnyTableSection<'a>
Source§fn from(t: BatSection<'a>) -> Self
fn from(t: BatSection<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for BatSection<'a>
impl<'a> Parse<'a> for BatSection<'a>
Source§impl<'a> PartialEq for BatSection<'a>
impl<'a> PartialEq for BatSection<'a>
Source§fn eq(&self, other: &BatSection<'a>) -> bool
fn eq(&self, other: &BatSection<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BatSection<'_>
impl Serialize for BatSection<'_>
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.Source§impl<'a> Serialize for BatSection<'a>
impl<'a> Serialize for BatSection<'a>
impl<'a> StructuralPartialEq for BatSection<'a>
Source§impl<'a> Table<'a> for BatSection<'a>
impl<'a> Table<'a> for BatSection<'a>
Source§impl<'a> TableDef<'a> for BatSection<'a>
impl<'a> TableDef<'a> for BatSection<'a>
Source§impl<'a> Yokeable<'a> for BatSection<'static>
impl<'a> Yokeable<'a> for BatSection<'static>
Source§type Output = BatSection<'a>
type Output = BatSection<'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 BatSection<'a>
impl<'a> RefUnwindSafe for BatSection<'a>
impl<'a> Send for BatSection<'a>
impl<'a> Sync for BatSection<'a>
impl<'a> Unpin for BatSection<'a>
impl<'a> UnsafeUnpin for BatSection<'a>
impl<'a> UnwindSafe for BatSection<'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