pub struct MetadataPointerDescriptor<'a> {
pub metadata_application_format: u16,
pub metadata_application_format_identifier: Option<u32>,
pub metadata_format: MetadataFormat,
pub metadata_format_identifier: Option<u32>,
pub metadata_service_id: u8,
pub metadata_locator_record_flag: bool,
pub mpeg_carriage_flags: MpegCarriageFlags,
pub metadata_locator_record: Option<&'a [u8]>,
pub program_number: Option<u16>,
pub transport_stream_location: Option<u16>,
pub transport_stream_id: Option<u16>,
pub private_data: &'a [u8],
}Expand description
Metadata Pointer Descriptor.
Fields§
§metadata_application_format: u16Metadata application format (u16; Table 2-84).
metadata_application_format_identifier: Option<u32>Metadata application format identifier — present when metadata_application_format == 0xFFFF.
metadata_format: MetadataFormatMetadata format (Table 2-87).
metadata_format_identifier: Option<u32>Metadata format identifier — present when metadata_format == 0xFF.
metadata_service_id: u8Metadata service ID.
metadata_locator_record_flag: boolMetadata locator record present flag.
mpeg_carriage_flags: MpegCarriageFlagsMPEG carriage flags (Table 2-88).
metadata_locator_record: Option<&'a [u8]>Metadata locator record — present when metadata_locator_record_flag is true.
program_number: Option<u16>Program number — present when MPEG_carriage_flags <= 2.
transport_stream_location: Option<u16>Transport stream location — present when MPEG_carriage_flags == 1.
transport_stream_id: Option<u16>Transport stream ID — present when MPEG_carriage_flags == 1.
private_data: &'a [u8]Trailing private data bytes.
Trait Implementations§
Source§impl<'a> Clone for MetadataPointerDescriptor<'a>
impl<'a> Clone for MetadataPointerDescriptor<'a>
Source§fn clone(&self) -> MetadataPointerDescriptor<'a>
fn clone(&self) -> MetadataPointerDescriptor<'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 MetadataPointerDescriptor<'a>
impl<'a> Debug for MetadataPointerDescriptor<'a>
Source§impl<'a> DescriptorDef<'a> for MetadataPointerDescriptor<'a>
impl<'a> DescriptorDef<'a> for MetadataPointerDescriptor<'a>
impl<'a> Eq for MetadataPointerDescriptor<'a>
Source§impl<'a> From<MetadataPointerDescriptor<'a>> for AnyDescriptor<'a>
impl<'a> From<MetadataPointerDescriptor<'a>> for AnyDescriptor<'a>
Source§fn from(d: MetadataPointerDescriptor<'a>) -> Self
fn from(d: MetadataPointerDescriptor<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for MetadataPointerDescriptor<'a>
impl<'a> Parse<'a> for MetadataPointerDescriptor<'a>
Source§impl<'a> PartialEq for MetadataPointerDescriptor<'a>
impl<'a> PartialEq for MetadataPointerDescriptor<'a>
Source§fn eq(&self, other: &MetadataPointerDescriptor<'a>) -> bool
fn eq(&self, other: &MetadataPointerDescriptor<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for MetadataPointerDescriptor<'a>
impl<'a> Serialize for MetadataPointerDescriptor<'a>
Source§impl Serialize for MetadataPointerDescriptor<'_>
impl Serialize for MetadataPointerDescriptor<'_>
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 MetadataPointerDescriptor<'a>
Source§impl<'a> Yokeable<'a> for MetadataPointerDescriptor<'static>
impl<'a> Yokeable<'a> for MetadataPointerDescriptor<'static>
Source§type Output = MetadataPointerDescriptor<'a>
type Output = MetadataPointerDescriptor<'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 MetadataPointerDescriptor<'a>
impl<'a> RefUnwindSafe for MetadataPointerDescriptor<'a>
impl<'a> Send for MetadataPointerDescriptor<'a>
impl<'a> Sync for MetadataPointerDescriptor<'a>
impl<'a> Unpin for MetadataPointerDescriptor<'a>
impl<'a> UnsafeUnpin for MetadataPointerDescriptor<'a>
impl<'a> UnwindSafe for MetadataPointerDescriptor<'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