Enum libpulse_binding::format::Encoding
[−]
[src]
#[repr(C)]pub enum Encoding { Any, PCM, AC3_IEC61937, EAC3_IEC61937, MPEG_IEC61937, DTS_IEC61937, MPEG2_AAC_IEC61937, Invalid, }
Represents the type of encoding used in a stream or accepted by a sink.
Variants
Any
Any encoding format, PCM or compressed.
PCM
Any PCM format.
AC3_IEC61937
AC3 data encapsulated in IEC 61937 header/padding.
EAC3_IEC61937
EAC3 data encapsulated in IEC 61937 header/padding.
MPEG_IEC61937
MPEG-1 or MPEG-2 (Part 3, not AAC) data encapsulated in IEC 61937 header/padding.
DTS_IEC61937
DTS data encapsulated in IEC 61937 header/padding.
MPEG2_AAC_IEC61937
MPEG-2 AAC data encapsulated in IEC 61937 header/padding.
Invalid
Represents an invalid encoding.
Methods
impl Encoding
[src]
pub fn to_string(e: Self) -> Option<String>
[src]
Returns a printable string representing the given encoding type.
Trait Implementations
impl Debug for Encoding
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for Encoding
[src]
impl Clone for Encoding
[src]
fn clone(&self) -> Encoding
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Encoding
[src]
fn eq(&self, __arg_0: &Encoding) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Encoding
[src]
impl From<Encoding> for pa_encoding_t
[src]
impl From<pa_encoding_t> for Encoding
[src]
fn from(e: pa_encoding_t) -> Self
[src]
Performs the conversion.