#[non_exhaustive]pub enum CodecType {
Opus,
Pcm,
FloatPcm,
}
Expand description
Type of data being passed into an Input
.
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.
Opus
The inner bytestream is encoded using the Opus codec.
Must be combined with a non-Raw
container.
Pcm
The inner bytestream is encoded using raw i16
samples.
Must be combined with a Raw
container.
FloatPcm
The inner bytestream is encoded using raw f32
samples.
Must be combined with a Raw
container.
Implementations§
Trait Implementations§
impl Copy for CodecType
Auto Trait Implementations§
impl RefUnwindSafe for CodecType
impl Send for CodecType
impl Sync for CodecType
impl Unpin for CodecType
impl UnwindSafe for CodecType
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