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]
impl Encoding
pub fn to_string(e: Self) -> Option<Cow<'static, str>>
[src]
pub fn to_string(e: Self) -> Option<Cow<'static, str>>
Returns a printable string representing the given encoding type.
pub fn from_string(encoding: &str) -> Self
[src]
pub fn from_string(encoding: &str) -> Self
Converts a string of the form returned by to_string
back to an
Encoding
.
Trait Implementations
impl Debug for Encoding
[src]
impl Debug for Encoding
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Encoding
[src]
impl Copy for Encoding
impl Clone for Encoding
[src]
impl Clone for Encoding
fn clone(&self) -> Encoding
[src]
fn clone(&self) -> Encoding
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Encoding
[src]
impl PartialEq for Encoding
fn eq(&self, other: &Encoding) -> bool
[src]
fn eq(&self, other: &Encoding) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for Encoding
[src]
impl Eq for Encoding
impl From<Encoding> for pa_encoding_t
[src]
impl From<Encoding> for pa_encoding_t
impl From<pa_encoding_t> for Encoding
[src]
impl From<pa_encoding_t> for Encoding
fn from(e: pa_encoding_t) -> Self
[src]
fn from(e: pa_encoding_t) -> Self
Performs the conversion.
impl Default for Encoding
[src]
impl Default for Encoding