[−][src]Enum libpulse_binding::format::Encoding
Represents the type of encoding used in a stream or accepted by a sink.
Variants
Any encoding format, PCM or compressed.
Any PCM format.
AC3 data encapsulated in IEC 61937 header/padding.
EAC3 data encapsulated in IEC 61937 header/padding.
MPEG-1 or MPEG-2 (Part 3, not AAC) data encapsulated in IEC 61937 header/padding.
DTS data encapsulated in IEC 61937 header/padding.
MPEG-2 AAC data encapsulated in IEC 61937 header/padding.
Dolby TrueHD data encapsulated in IEC 61937 header/padding.
Available since PA version 13.
DTS-HD Master Audio encapsulated in IEC 61937 header/padding.
Available since PA version 13.
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.
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]
fn from(e: pa_encoding_t) -> Self[src]
impl PartialEq<Encoding> for Encoding[src]
impl StructuralEq for Encoding[src]
impl StructuralPartialEq for Encoding[src]
Auto Trait Implementations
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,