#[repr(C)]pub struct AudioConfig {
pub sample_rate: u32,
pub channels: u16,
}Expand description
Audio stream format.
Fields§
§sample_rate: u32Samples per second per channel (e.g. 48000).
channels: u16Channel count (1 = mono, 2 = stereo).
Implementations§
Trait Implementations§
Source§impl Clone for AudioConfig
impl Clone for AudioConfig
Source§fn clone(&self) -> AudioConfig
fn clone(&self) -> AudioConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioConfig
impl Debug for AudioConfig
Source§impl Default for AudioConfig
impl Default for AudioConfig
Source§impl Hash for AudioConfig
impl Hash for AudioConfig
Source§impl PartialEq for AudioConfig
impl PartialEq for AudioConfig
Source§fn eq(&self, other: &AudioConfig) -> bool
fn eq(&self, other: &AudioConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AudioConfig
impl Eq for AudioConfig
impl StructuralPartialEq for AudioConfig
Auto Trait Implementations§
impl Freeze for AudioConfig
impl RefUnwindSafe for AudioConfig
impl Send for AudioConfig
impl Sync for AudioConfig
impl Unpin for AudioConfig
impl UnsafeUnpin for AudioConfig
impl UnwindSafe for AudioConfig
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