#[non_exhaustive]pub struct MetadataSection<'a> {
pub section_syntax_indicator: bool,
pub private_indicator: bool,
pub random_access_indicator: bool,
pub decoder_config_flag: bool,
pub metadata_service_id: u8,
pub reserved: u8,
pub section_fragment_indication: SectionFragmentIndication,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub metadata_bytes: &'a [u8],
}Expand description
Metadata_section() — Table 2-158.
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.section_syntax_indicator: boolsection_syntax_indicator (shall be 1; a received value is kept).
private_indicator: boolprivate_indicator (not specified by H.222.0).
random_access_indicator: boolrandom_access_indicator.
decoder_config_flag: booldecoder_config_flag.
metadata_service_id: u8metadata_service_id.
reserved: u8reserved(8); re-emitted verbatim, default 0xFF.
section_fragment_indication: SectionFragmentIndicationsection_fragment_indication (Table 2-159).
version_number: u8version_number (5 bits).
current_next_indicator: boolcurrent_next_indicator.
section_number: u8section_number.
last_section_number: u8last_section_number.
metadata_bytes: &'a [u8]metadata_bytes (opaque: the metadata Access Unit format is not part of
this section syntax).
Implementations§
Source§impl<'a> MetadataSection<'a>
impl<'a> MetadataSection<'a>
Trait Implementations§
Source§impl<'a> Clone for MetadataSection<'a>
impl<'a> Clone for MetadataSection<'a>
Source§impl<'a> Debug for MetadataSection<'a>
impl<'a> Debug for MetadataSection<'a>
impl<'a> Eq for MetadataSection<'a>
Source§impl<'a> From<MetadataSection<'a>> for AnyTableSection<'a>
impl<'a> From<MetadataSection<'a>> for AnyTableSection<'a>
Source§fn from(t: MetadataSection<'a>) -> Self
fn from(t: MetadataSection<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for MetadataSection<'a>
impl<'a> Parse<'a> for MetadataSection<'a>
Source§impl<'a> PartialEq for MetadataSection<'a>
impl<'a> PartialEq for MetadataSection<'a>
Source§impl<'a> Serialize for MetadataSection<'a>
Available on crate feature serde only.
impl<'a> Serialize for MetadataSection<'a>
Available on crate feature
serde only.Source§impl Serialize for MetadataSection<'_>
impl Serialize for MetadataSection<'_>
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§fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
Write the serialised form into
buf. Returns the number of bytes
written (always equal to serialized_len()).Source§fn try_to_bytes(&self) -> Result<Vec<u8>, Self::Error>
fn try_to_bytes(&self) -> Result<Vec<u8>, Self::Error>
Allocate a
Vec and serialize into it, returning the serializer’s error instead of
panicking. This is the only
allocate-and-serialize entry point: there is deliberately no panicking
to_bytes (hand-built values, or values assembled from damaged wire data,
can violate a wire constraint, so the error must reach the caller).impl<'a> StructuralPartialEq for MetadataSection<'a>
Source§impl<'a> TableDef<'a> for MetadataSection<'a>
impl<'a> TableDef<'a> for MetadataSection<'a>
Source§impl<'yoke> Yokeable<'yoke> for MetadataSection<'static>
Available on crate feature yoke only.
impl<'yoke> Yokeable<'yoke> for MetadataSection<'static>
Available on crate feature
yoke only.Source§type Output = MetadataSection<'yoke>
type Output = MetadataSection<'yoke>
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> Forget for MetadataSection<'a>
impl<'a> Freeze for MetadataSection<'a>
impl<'a> RefUnwindSafe for MetadataSection<'a>
impl<'a> Send for MetadataSection<'a>
impl<'a> Sync for MetadataSection<'a>
impl<'a> Unpin for MetadataSection<'a>
impl<'a> UnsafeUnpin for MetadataSection<'a>
impl<'a> UnwindSafe for MetadataSection<'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