pub struct AudioDeviceInfo {
pub name: String,
pub device_type: DeviceType,
pub sample_rates: Vec<u32>,
pub channels: Vec<u16>,
pub is_default: bool,
}Expand description
Describes an audio device (input or output).
Fields§
§name: String§device_type: DeviceType§sample_rates: Vec<u32>§channels: Vec<u16>§is_default: boolTrait Implementations§
Source§impl Clone for AudioDeviceInfo
impl Clone for AudioDeviceInfo
Source§fn clone(&self) -> AudioDeviceInfo
fn clone(&self) -> AudioDeviceInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioDeviceInfo
impl Debug for AudioDeviceInfo
Auto Trait Implementations§
impl Freeze for AudioDeviceInfo
impl RefUnwindSafe for AudioDeviceInfo
impl Send for AudioDeviceInfo
impl Sync for AudioDeviceInfo
impl Unpin for AudioDeviceInfo
impl UnsafeUnpin for AudioDeviceInfo
impl UnwindSafe for AudioDeviceInfo
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