pub struct ResolvedDevice {
pub alias: String,
pub name: String,
pub device: Device,
pub is_input: bool,
pub is_output: bool,
pub max_input_channels: u16,
pub max_output_channels: u16,
pub preferred_input_channels: u16,
pub preferred_output_channels: u16,
}Expand description
Information about a resolved audio device.
Fields§
§alias: StringConfig-local alias.
name: StringActual CPAL device name.
device: DeviceThe CPAL device handle.
is_input: boolWhether this device is used as an input.
is_output: boolWhether this device is used as an output.
max_input_channels: u16Max input channels available.
max_output_channels: u16Max output channels available.
preferred_input_channels: u16Preferred (default) input channel count reported by the OS
(CoreAudio kAudioDevicePropertyStreamFormat).
preferred_output_channels: u16Preferred (default) output channel count reported by the OS.
Trait Implementations§
Source§impl Clone for ResolvedDevice
impl Clone for ResolvedDevice
Source§fn clone(&self) -> ResolvedDevice
fn clone(&self) -> ResolvedDevice
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 moreAuto Trait Implementations§
impl Freeze for ResolvedDevice
impl RefUnwindSafe for ResolvedDevice
impl Send for ResolvedDevice
impl Sync for ResolvedDevice
impl Unpin for ResolvedDevice
impl UnsafeUnpin for ResolvedDevice
impl UnwindSafe for ResolvedDevice
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