[][src]Enum libpulse_binding::format::Encoding

#[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<Cow<'static, str>>[src]

Returns a printable string representing the given encoding type.

pub fn from_string(encoding: &str) -> Self[src]

Converts a string of the form returned by to_string back to an Encoding.

Trait Implementations

impl Copy for Encoding[src]

impl PartialEq<Encoding> for Encoding[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Default for Encoding[src]

impl From<Encoding> for pa_encoding_t[src]

impl From<pa_encoding_t> for Encoding[src]

impl Clone for Encoding[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Encoding[src]

impl Debug for Encoding[src]

Auto Trait Implementations

impl Send for Encoding

impl Sync for Encoding

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]