#[non_exhaustive]pub enum InterfaceType {
Show 14 variants
BuiltIn,
Usb,
Bluetooth,
Pci,
FireWire,
Thunderbolt,
Hdmi,
Line,
Spdif,
Network,
Virtual,
DisplayPort,
Aggregate,
Unknown,
}Expand description
How the device connects to the system (interface/connection type).
This describes the physical or logical connection between the audio device and the computer system.
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.
BuiltIn
Built-in to the system (integrated audio chipset)
Usb
USB connection
Bluetooth
Bluetooth wireless connection
Pci
PCI or PCIe card (internal sound card)
FireWire
FireWire connection (IEEE 1394)
Thunderbolt
Thunderbolt connection
Hdmi
HDMI connection
Line
Line-level analog connection (line in/out, aux)
Spdif
S/PDIF digital audio interface
Network
Network connection (Dante, AVB, AirPlay, IP audio, etc.)
Virtual
Virtual/loopback connection (software audio routing, not physical hardware)
DisplayPort
DisplayPort audio
Aggregate
Aggregate device (combines multiple devices)
Unknown
Unknown connection type
Trait Implementations§
Source§impl Clone for InterfaceType
impl Clone for InterfaceType
Source§fn clone(&self) -> InterfaceType
fn clone(&self) -> InterfaceType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterfaceType
impl Debug for InterfaceType
Source§impl Default for InterfaceType
impl Default for InterfaceType
Source§fn default() -> InterfaceType
fn default() -> InterfaceType
Returns the “default value” for a type. Read more
Source§impl Display for InterfaceType
impl Display for InterfaceType
Source§impl Hash for InterfaceType
impl Hash for InterfaceType
Source§impl PartialEq for InterfaceType
impl PartialEq for InterfaceType
impl Copy for InterfaceType
impl Eq for InterfaceType
impl StructuralPartialEq for InterfaceType
Auto Trait Implementations§
impl Freeze for InterfaceType
impl RefUnwindSafe for InterfaceType
impl Send for InterfaceType
impl Sync for InterfaceType
impl Unpin for InterfaceType
impl UnwindSafe for InterfaceType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)