#[non_exhaustive]pub enum AudioFormat {
Wav,
Pcm16,
Mp3,
Opus,
Flac,
}Expand description
An audio encoding for speech out: wav, pcm16 (raw little-endian 16-bit samples), mp3,
opus or flac on the wire, as weirdnet_agent::speech::AudioFormat.
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 AudioFormat
impl AudioFormat
Sourcepub const ALL: [AudioFormat; 5]
pub const ALL: [AudioFormat; 5]
Every format, in wire order.
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
impl Copy for AudioFormat
Source§impl Debug for AudioFormat
impl Debug for AudioFormat
Source§impl Default for AudioFormat
impl Default for AudioFormat
Source§impl<'de> Deserialize<'de> for AudioFormat
impl<'de> Deserialize<'de> for AudioFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AudioFormat
impl Display for AudioFormat
impl Eq for AudioFormat
Source§impl Hash for AudioFormat
impl Hash for AudioFormat
Source§impl Ord for AudioFormat
impl Ord for AudioFormat
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AudioFormat
impl PartialEq for AudioFormat
Source§impl PartialOrd for AudioFormat
impl PartialOrd for AudioFormat
Source§impl Serialize for AudioFormat
impl Serialize for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl Forget for AudioFormat
impl Freeze for AudioFormat
impl Move for AudioFormat
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnsafeUnpin for AudioFormat
impl UnwindSafe for AudioFormat
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