[][src]Enum audiopus::SampleRate

#[repr(i32)]
pub enum SampleRate {
    Hz8000,
    Hz12000,
    Hz16000,
    Hz24000,
    Hz48000,
}

Represents possible sample rates Opus can use. Values represent Hertz.

Variants

Hz8000
Hz12000
Hz16000
Hz24000
Hz48000

Trait Implementations

impl TryFrom<i32> for SampleRate[src]

type Error = Error

fn try_from(value: i32) -> Result<Self>[src]

Fails if a number does not map a documented Opus sample rate.

impl Clone for SampleRate[src]

impl Copy for SampleRate[src]

impl Eq for SampleRate[src]

impl PartialEq<SampleRate> for SampleRate[src]

impl Debug for SampleRate[src]

impl Hash for SampleRate[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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