Type Alias usb_ids::Phy

source ·
pub type Phy = UsbId<PHY_TAG, u8>;
Expand description

Represents physical descriptor item type in the USB database.

use usb_ids::{Phy, FromId};
let phy = Phy::from_id(0x25).unwrap();
assert_eq!(phy.name(), "Fifth Toe");

Aliased Type§

struct Phy { /* private fields */ }

Trait Implementations§

source§

impl FromId<u8> for Phy

source§

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

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