Type Alias usb_ids::AudioTerminal

source ·
pub type AudioTerminal = UsbId<AT_TAG, u16>;
Expand description

Represents an audio terminal type in the USB database.

use usb_ids::{AudioTerminal, FromId};
let audio_terminal = AudioTerminal::from_id(0x0201).unwrap();
assert_eq!(audio_terminal.name(), "Microphone");

Aliased Type§

struct AudioTerminal { /* private fields */ }

Trait Implementations§

source§

impl FromId<u16> for AudioTerminal

source§

fn from_id(id: u16) -> Option<&'static Self>

Returns the entity corresponding to id, or None if none exists.