Type Alias usb_ids::VideoTerminal

source ·
pub type VideoTerminal = UsbId<VT_TAG, u16>;
Expand description

Represents a video class terminal type in the USB database.

use usb_ids::{VideoTerminal, FromId};
let video_terminal = VideoTerminal::from_id(0x0101).unwrap();
assert_eq!(video_terminal.name(), "USB Streaming");

Aliased Type§

struct VideoTerminal { /* private fields */ }

Trait Implementations§

source§

impl FromId<u16> for VideoTerminal

source§

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

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