pub struct NitSection<'a> {
pub kind: NitKind,
pub network_id: u16,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub network_descriptors: DescriptorLoop<'a>,
pub transport_streams: Vec<NitTransportStream<'a>>,
}Expand description
Network Information Table.
Fields§
§kind: NitKindVariant discriminator (table_id 0x40 vs 0x41).
network_id: u16Network identifier.
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.
network_descriptors: DescriptorLoop<'a>Raw network-wide descriptor bytes.
Network descriptor loop. Serializes as the typed descriptor sequence;
.raw() yields the wire bytes.
transport_streams: Vec<NitTransportStream<'a>>Transport-stream loop entries in wire order.
Trait Implementations§
Source§impl<'a> Clone for NitSection<'a>
impl<'a> Clone for NitSection<'a>
Source§fn clone(&self) -> NitSection<'a>
fn clone(&self) -> NitSection<'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 NitSection<'a>
impl<'a> Debug for NitSection<'a>
impl<'a> Eq for NitSection<'a>
Source§impl<'a> From<NitSection<'a>> for AnyTableSection<'a>
impl<'a> From<NitSection<'a>> for AnyTableSection<'a>
Source§fn from(t: NitSection<'a>) -> Self
fn from(t: NitSection<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for NitSection<'a>
impl<'a> Parse<'a> for NitSection<'a>
Source§impl<'a> PartialEq for NitSection<'a>
impl<'a> PartialEq for NitSection<'a>
Source§fn eq(&self, other: &NitSection<'a>) -> bool
fn eq(&self, other: &NitSection<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NitSection<'_>
impl Serialize for NitSection<'_>
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 NitSection<'a>
impl<'a> Serialize for NitSection<'a>
impl<'a> StructuralPartialEq for NitSection<'a>
Source§impl<'a> Table<'a> for NitSection<'a>
impl<'a> Table<'a> for NitSection<'a>
Source§impl<'a> TableDef<'a> for NitSection<'a>
impl<'a> TableDef<'a> for NitSection<'a>
Source§impl<'a> Yokeable<'a> for NitSection<'static>
impl<'a> Yokeable<'a> for NitSection<'static>
Source§type Output = NitSection<'a>
type Output = NitSection<'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 NitSection<'a>
impl<'a> RefUnwindSafe for NitSection<'a>
impl<'a> Send for NitSection<'a>
impl<'a> Sync for NitSection<'a>
impl<'a> Unpin for NitSection<'a>
impl<'a> UnsafeUnpin for NitSection<'a>
impl<'a> UnwindSafe for NitSection<'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