[−][src]Enum libpulse_binding::format::Encoding
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]
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 From<Encoding> for pa_encoding_t[src]
impl From<pa_encoding_t> for Encoding[src]
fn from(e: pa_encoding_t) -> Self[src]
impl Default for Encoding[src]
impl Clone for Encoding[src]
fn clone(&self) -> Encoding[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<Encoding> for Encoding[src]
fn eq(&self, other: &Encoding) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Eq for Encoding[src]
impl Copy for Encoding[src]
impl Debug for Encoding[src]
Auto Trait Implementations
impl Unpin for Encoding
impl Send for Encoding
impl Sync for Encoding
impl RefUnwindSafe for Encoding
impl UnwindSafe for Encoding
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,