pub struct Nit<'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: &'a [u8],
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: &'a [u8]Raw network-wide descriptor bytes.
transport_streams: Vec<NitTransportStream<'a>>Transport-stream loop entries in wire order.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Nit<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Nit<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'a> Eq for Nit<'a>
Source§impl Serialize for Nit<'_>
impl Serialize for Nit<'_>
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 Nit<'a>
Auto Trait Implementations§
impl<'a> Freeze for Nit<'a>
impl<'a> RefUnwindSafe for Nit<'a>
impl<'a> Send for Nit<'a>
impl<'a> Sync for Nit<'a>
impl<'a> Unpin for Nit<'a>
impl<'a> UnsafeUnpin for Nit<'a>
impl<'a> UnwindSafe for Nit<'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