#[non_exhaustive]pub enum Ac3ServiceType {
CompleteMain,
MusicAndEffects,
VisuallyImpaired,
HearingImpaired,
Dialogue,
Commentary,
Emergency,
VoiceOver,
Unknown(u8),
}Expand description
AC-3 / Enhanced AC-3 service type — EN 300 468 Annex D Table D.4.
3-bit field [5:3] of the component_type byte. Values 0–7 are assigned
by the spec; the Unknown variant carries any value outside that range
(should not occur for a 3-bit field but preserves the raw value for
round-trip).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CompleteMain
Complete Main (CM) — valid when full_service is set.
MusicAndEffects
Music and Effects (ME) — valid when full_service is not set.
VisuallyImpaired
Visually Impaired (VI).
HearingImpaired
Hearing Impaired (HI).
Dialogue
Dialogue (D).
Commentary
Commentary (C).
Emergency
Emergency (E).
VoiceOver
Voice Over (VO).
Unknown(u8)
Unknown/reserved service type value.
Implementations§
Trait Implementations§
Source§impl Clone for Ac3ServiceType
impl Clone for Ac3ServiceType
Source§fn clone(&self) -> Ac3ServiceType
fn clone(&self) -> Ac3ServiceType
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 moreimpl Copy for Ac3ServiceType
Source§impl Debug for Ac3ServiceType
impl Debug for Ac3ServiceType
impl Eq for Ac3ServiceType
Source§impl PartialEq for Ac3ServiceType
impl PartialEq for Ac3ServiceType
Source§fn eq(&self, other: &Ac3ServiceType) -> bool
fn eq(&self, other: &Ac3ServiceType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Ac3ServiceType
impl Serialize for Ac3ServiceType
impl StructuralPartialEq for Ac3ServiceType
Auto Trait Implementations§
impl Freeze for Ac3ServiceType
impl RefUnwindSafe for Ac3ServiceType
impl Send for Ac3ServiceType
impl Sync for Ac3ServiceType
impl Unpin for Ac3ServiceType
impl UnsafeUnpin for Ac3ServiceType
impl UnwindSafe for Ac3ServiceType
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