[][src]Trait audiopus::TryFrom

pub trait TryFrom<T>: Sized {
    type Error;
    fn try_from(value: T) -> Result<Self>;
}

While TryFrom is nightly, we use our own implementation to stay stable.

Associated Types

type Error

Loading content...

Required methods

fn try_from(value: T) -> Result<Self>

Loading content...

Implementors

impl TryFrom<i32> for Signal[src]

type Error = Error

impl TryFrom<i32> for Bitrate[src]

type Error = Error

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 TryFrom<i32> for Application[src]

type Error = Error

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

Fails if a value does not match Opus' specified application-value.

impl TryFrom<i32> for Channels[src]

impl TryFrom<i32> for Bandwidth[src]

type Error = Error

Loading content...