#[non_exhaustive]pub enum NativeAudioCodec {
Aac,
Opus,
}Expand description
Audio codecs implemented by the native encode sinks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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 Freeze 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.