pub struct OutputTerminalDescriptor {
pub terminal_id: u8,
pub terminal_type: u16,
pub associated_terminal_id: u8,
pub source_id: u8,
pub clock_source_id: u8,
pub controls_bitmap: u16,
pub terminal_name: StringIndex,
}Expand description
Output terminal descriptor for audio output destinations. (USB Audio Devices 2.0 §4.7.2.5)
Fields§
§terminal_id: u8Unique identifier for this output terminal.
terminal_type: u16Raw wTerminalType of this output terminal; decode with TerminalType::try_from.
associated_terminal_id: u8Associated terminal ID.
source_id: u8Source unit or terminal ID.
clock_source_id: u8Clock source ID associated with this terminal.
controls_bitmap: u16Bitmap of supported controls.
terminal_name: StringIndexIndex of string descriptor describing this terminal.
Trait Implementations§
Source§impl Clone for OutputTerminalDescriptor
impl Clone for OutputTerminalDescriptor
Source§fn clone(&self) -> OutputTerminalDescriptor
fn clone(&self) -> OutputTerminalDescriptor
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 moreimpl Copy for OutputTerminalDescriptor
Source§impl Debug for OutputTerminalDescriptor
impl Debug for OutputTerminalDescriptor
impl Eq for OutputTerminalDescriptor
Source§impl ExtendableDescriptor for OutputTerminalDescriptor
impl ExtendableDescriptor for OutputTerminalDescriptor
Source§fn match_bytes(bytes: &[u8]) -> Result<(), DescriptorError>
fn match_bytes(bytes: &[u8]) -> Result<(), DescriptorError>
Matches
bytes with this descriptor. Read moreSource§fn prepare_bytes(bytes: &mut [u8], len: u8) -> Result<(), DescriptorError>where
Self: WritableDescriptor,
fn prepare_bytes(bytes: &mut [u8], len: u8) -> Result<(), DescriptorError>where
Self: WritableDescriptor,
Prepares
bytes to receive descriptor data. Read moreSource§impl Format for OutputTerminalDescriptorwhere
StringIndex: Format,
impl Format for OutputTerminalDescriptorwhere
StringIndex: Format,
Source§impl PartialEq for OutputTerminalDescriptor
impl PartialEq for OutputTerminalDescriptor
impl StructuralPartialEq for OutputTerminalDescriptor
Source§impl WritableDescriptor for OutputTerminalDescriptor
impl WritableDescriptor for OutputTerminalDescriptor
Auto Trait Implementations§
impl Freeze for OutputTerminalDescriptor
impl RefUnwindSafe for OutputTerminalDescriptor
impl Send for OutputTerminalDescriptor
impl Sync for OutputTerminalDescriptor
impl Unpin for OutputTerminalDescriptor
impl UnsafeUnpin for OutputTerminalDescriptor
impl UnwindSafe for OutputTerminalDescriptor
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