pub struct ServiceDescriptor<'a> {
pub service_type: u8,
pub service_provider_name: &'a [u8],
pub service_name: &'a [u8],
}Expand description
service_descriptor body (ETSI EN 300 468 §6.2.33 Table 88).
This is a DVB Service Information extension to the ISO/IEC 13818-1
descriptor space, carried inside the per-service descriptor loop of
a crate::psi::ServiceDescriptionTable section. It pairs the
service’s textual provider name and service name with an 8-bit
service_type (Table 89).
The two name fields are exposed as raw byte slices rather than
decoded strings: DVB text strings (EN 300 468 annex A) carry an
optional leading character-table selector byte and may use any of
several code tables, so charset interpretation is deliberately left
to the caller. The bytes are exactly the service_provider_name
and service_name runs as they appear on the wire.
Fields§
§service_type: u88-bit service_type (Table 89). Common values: 0x01 digital
television, 0x02 digital radio, 0x11 HD digital television,
0x19 H.264/AVC HD, 0x1F HEVC digital television.
service_provider_name: &'a [u8]Raw service_provider_name bytes (DVB text string, annex A).
service_name: &'a [u8]Raw service_name bytes (DVB text string, annex A).
Trait Implementations§
Source§impl<'a> Clone for ServiceDescriptor<'a>
impl<'a> Clone for ServiceDescriptor<'a>
Source§fn clone(&self) -> ServiceDescriptor<'a>
fn clone(&self) -> ServiceDescriptor<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<'a> Copy for ServiceDescriptor<'a>
Source§impl<'a> Debug for ServiceDescriptor<'a>
impl<'a> Debug for ServiceDescriptor<'a>
impl<'a> Eq for ServiceDescriptor<'a>
Source§impl<'a> PartialEq for ServiceDescriptor<'a>
impl<'a> PartialEq for ServiceDescriptor<'a>
Source§fn eq(&self, other: &ServiceDescriptor<'a>) -> bool
fn eq(&self, other: &ServiceDescriptor<'a>) -> bool
self and other values to be equal, and is used by ==.