pub struct UsbAudioDevice {
pub device_address: u8,
pub version: UacVersion,
pub control_interface: u8,
pub units: Vec<AudioUnit>,
pub streaming_interfaces: Vec<AudioStreamingInterface>,
pub active_stream: Option<(u8, u8)>,
pub current_sample_rate: u32,
pub name: String,
}Expand description
A parsed USB Audio device with all its audio topology
Fields§
§device_address: u8USB device address
version: UacVersionUAC version detected
control_interface: u8Audio Control interface number
units: Vec<AudioUnit>All audio units/terminals in the topology
streaming_interfaces: Vec<AudioStreamingInterface>All audio streaming interface alternate settings
active_stream: Option<(u8, u8)>Currently active streaming interface (interface_num, alternate_setting)
current_sample_rate: u32Current sample rate in Hz
name: StringDevice name (from USB string descriptor)
Implementations§
Source§impl UsbAudioDevice
impl UsbAudioDevice
Sourcepub fn new(device_address: u8, version: UacVersion) -> Self
pub fn new(device_address: u8, version: UacVersion) -> Self
Create a new USB audio device
Trait Implementations§
Source§impl Clone for UsbAudioDevice
impl Clone for UsbAudioDevice
Source§fn clone(&self) -> UsbAudioDevice
fn clone(&self) -> UsbAudioDevice
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 moreAuto Trait Implementations§
impl Freeze for UsbAudioDevice
impl RefUnwindSafe for UsbAudioDevice
impl Send for UsbAudioDevice
impl Sync for UsbAudioDevice
impl Unpin for UsbAudioDevice
impl UnwindSafe for UsbAudioDevice
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§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)