pub enum NativeAudioCodec {
Aac,
Opus,
}Expand description
Audio codecs the native encoders implement.
Variants§
Implementations§
Source§impl NativeAudioCodec
impl NativeAudioCodec
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Stable identifier suitable for an application protocol or settings file.
Sourcepub const fn model(self) -> AudioCodec
pub const fn model(self) -> AudioCodec
The engine’s codec this encoder family implements.
Sourcepub const fn from_model(codec: AudioCodec) -> Self
pub const fn from_model(codec: AudioCodec) -> Self
The native codec for the engine’s codec.
Trait Implementations§
Source§impl Clone for NativeAudioCodec
impl Clone for NativeAudioCodec
impl Copy for NativeAudioCodec
Source§impl Debug for NativeAudioCodec
impl Debug for NativeAudioCodec
impl Eq for NativeAudioCodec
Source§impl Hash for NativeAudioCodec
impl Hash for NativeAudioCodec
Source§impl PartialEq for NativeAudioCodec
impl PartialEq for NativeAudioCodec
impl StructuralPartialEq for NativeAudioCodec
Auto Trait Implementations§
impl Forget for NativeAudioCodec
impl Freeze for NativeAudioCodec
impl Move for NativeAudioCodec
impl RefUnwindSafe for NativeAudioCodec
impl Send for NativeAudioCodec
impl Sync for NativeAudioCodec
impl Unpin for NativeAudioCodec
impl UnsafeUnpin for NativeAudioCodec
impl UnwindSafe for NativeAudioCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more