pub enum DeviceSelector {
Default,
ByName(String),
ByIndex(usize),
}Expand description
Audio device selection criteria.
Variants§
Default
Use the system default device.
ByName(String)
Select by device name (substring match).
ByIndex(usize)
Select by index from the device list.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceSelector
impl Clone for DeviceSelector
Source§fn clone(&self) -> DeviceSelector
fn clone(&self) -> DeviceSelector
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 DeviceSelector
impl Debug for DeviceSelector
Auto Trait Implementations§
impl Freeze for DeviceSelector
impl RefUnwindSafe for DeviceSelector
impl Send for DeviceSelector
impl Sync for DeviceSelector
impl Unpin for DeviceSelector
impl UnsafeUnpin for DeviceSelector
impl UnwindSafe for DeviceSelector
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