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

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.

Implementations

Returns a printable string representing the given encoding type.

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

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.