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
AnyAny encoding format, PCM or compressed.
PCMAny PCM format.
AC3_IEC61937AC3 data encapsulated in IEC 61937 header/padding.
EAC3_IEC61937EAC3 data encapsulated in IEC 61937 header/padding.
MPEG_IEC61937MPEG-1 or MPEG-2 (Part 3, not AAC) data encapsulated in IEC 61937 header/padding.
DTS_IEC61937DTS data encapsulated in IEC 61937 header/padding.
MPEG2_AAC_IEC61937MPEG-2 AAC data encapsulated in IEC 61937 header/padding.
InvalidRepresents an invalid encoding.
Methods
impl Encoding[src]
impl Encodingpub 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) -> SelfConverts a string of the form returned by to_string back to an
Encoding.
Trait Implementations
impl Debug for Encoding[src]
impl Debug for Encodingfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Encoding[src]
impl Copy for Encodingimpl Clone for Encoding[src]
impl Clone for Encodingfn clone(&self) -> Encoding[src]
fn clone(&self) -> EncodingReturns 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 Encodingfn eq(&self, other: &Encoding) -> bool[src]
fn eq(&self, other: &Encoding) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for Encoding[src]
impl Eq for Encodingimpl From<Encoding> for pa_encoding_t[src]
impl From<Encoding> for pa_encoding_timpl From<pa_encoding_t> for Encoding[src]
impl From<pa_encoding_t> for Encodingfn from(e: pa_encoding_t) -> Self[src]
fn from(e: pa_encoding_t) -> SelfPerforms the conversion.
impl Default for Encoding[src]
impl Default for Encoding