#[non_exhaustive]pub enum Ac3ChannelMode {
Mono,
OnePlusOne,
Stereo,
SurroundEncodedStereo,
Multichannel,
MultichannelAbove51,
MultipleSubstreams,
Reserved,
Unknown(u8),
}Expand description
AC-3 / Enhanced AC-3 channel mode — EN 300 468 Annex D Table D.5.
3-bit field [2:0] of the component_type byte. Values 0–6 are assigned
by the spec; value 7 is reserved for future use.
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.
Mono
Mono.
OnePlusOne
1+1 Mode (dual mono).
Stereo
2 channel (stereo).
SurroundEncodedStereo
2 channel Surround encoded (Dolby surround).
Multichannel
Multichannel audio (> 2 channels).
MultichannelAbove51
Multichannel audio (> 5.1 channels).
MultipleSubstreams
Multiple programmes in independent substreams.
Reserved
Reserved for future use (code 7).
Unknown(u8)
Unknown value outside the 3-bit domain.
Implementations§
Trait Implementations§
Source§impl Clone for Ac3ChannelMode
impl Clone for Ac3ChannelMode
Source§fn clone(&self) -> Ac3ChannelMode
fn clone(&self) -> Ac3ChannelMode
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 Ac3ChannelMode
Source§impl Debug for Ac3ChannelMode
impl Debug for Ac3ChannelMode
impl Eq for Ac3ChannelMode
Source§impl PartialEq for Ac3ChannelMode
impl PartialEq for Ac3ChannelMode
Source§fn eq(&self, other: &Ac3ChannelMode) -> bool
fn eq(&self, other: &Ac3ChannelMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Ac3ChannelMode
impl Serialize for Ac3ChannelMode
impl StructuralPartialEq for Ac3ChannelMode
Auto Trait Implementations§
impl Freeze for Ac3ChannelMode
impl RefUnwindSafe for Ac3ChannelMode
impl Send for Ac3ChannelMode
impl Sync for Ac3ChannelMode
impl Unpin for Ac3ChannelMode
impl UnsafeUnpin for Ac3ChannelMode
impl UnwindSafe for Ac3ChannelMode
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