pub struct AudioInterfaceCollection {
pub interface_association_descriptor: InterfaceAssociationDescriptor,
pub control_interface: AudioControlInterface,
pub audio_streaming_interfaces: Vec<AudioStreamingInterface, MAX_AUDIO_STREAMING_INTERFACES>,
}Expand description
Collection of audio interfaces representing a complete UAC audio function.
This struct contains all the interfaces that make up a USB Audio Class device, including the interface association descriptor, control interface, and streaming interfaces.
Fields§
§interface_association_descriptor: InterfaceAssociationDescriptorInterface association descriptor that groups the audio interfaces together.
control_interface: AudioControlInterfaceAudio control interface containing clocks, terminals, and units.
audio_streaming_interfaces: Vec<AudioStreamingInterface, MAX_AUDIO_STREAMING_INTERFACES>Collection of audio streaming interfaces for data transfer.
Implementations§
Source§impl AudioInterfaceCollection
impl AudioInterfaceCollection
Sourcepub fn try_from_configuration(
cfg: &ConfigurationDescriptor<'_>,
) -> Result<Self, AudioInterfaceError>
pub fn try_from_configuration( cfg: &ConfigurationDescriptor<'_>, ) -> Result<Self, AudioInterfaceError>
Attempts to parse an audio interface collection from a configuration descriptor.
This method searches for an interface association descriptor for audio, then parses the control interface and all streaming interfaces.
Returns an AudioInterfaceCollection on success, or an AudioInterfaceError if parsing fails.
Trait Implementations§
Source§impl Debug for AudioInterfaceCollection
impl Debug for AudioInterfaceCollection
Source§impl Format for AudioInterfaceCollectionwhere
InterfaceAssociationDescriptor: Format,
AudioControlInterface: Format,
Vec<AudioStreamingInterface, MAX_AUDIO_STREAMING_INTERFACES>: Format,
impl Format for AudioInterfaceCollectionwhere
InterfaceAssociationDescriptor: Format,
AudioControlInterface: Format,
Vec<AudioStreamingInterface, MAX_AUDIO_STREAMING_INTERFACES>: Format,
Source§impl PartialEq for AudioInterfaceCollection
impl PartialEq for AudioInterfaceCollection
impl StructuralPartialEq for AudioInterfaceCollection
Auto Trait Implementations§
impl Freeze for AudioInterfaceCollection
impl RefUnwindSafe for AudioInterfaceCollection
impl Send for AudioInterfaceCollection
impl Sync for AudioInterfaceCollection
impl Unpin for AudioInterfaceCollection
impl UnwindSafe for AudioInterfaceCollection
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