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

#[repr(C)]
#[non_exhaustive]pub enum Encoding {
    Any,
    PCM,
    AC3_IEC61937,
    EAC3_IEC61937,
    MPEG_IEC61937,
    DTS_IEC61937,
    MPEG2_AAC_IEC61937,
    TRUEHD_IEC61937,
    DTSHD_IEC61937,
    Invalid,
}

Represents the type of encoding used in a stream or accepted by a sink.

Variants (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.
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.

TRUEHD_IEC61937

Dolby TrueHD data encapsulated in IEC 61937 header/padding.

Available since PA version 13.

DTSHD_IEC61937

DTS-HD Master Audio encapsulated in IEC 61937 header/padding.

Available since PA version 13.

Invalid

Represents an invalid encoding.

Implementations

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.

Available since PA version 12.

Trait Implementations

impl Clone for Encoding[src]

impl Copy for Encoding[src]

impl Debug for Encoding[src]

impl Default for Encoding[src]

impl Eq for Encoding[src]

impl From<Encoding> for pa_encoding_t[src]

impl From<pa_encoding_t> for Encoding[src]

impl FromPrimitive for Encoding[src]

impl PartialEq<Encoding> for Encoding[src]

impl StructuralEq for Encoding[src]

impl StructuralPartialEq for Encoding[src]

impl ToPrimitive for Encoding[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.