Skip to main content

EnumeratedDevice

Struct EnumeratedDevice 

Source
pub struct EnumeratedDevice {
Show 16 fields pub kind: UsbDeviceKind, pub address: u8, pub interface_number: u8, pub ep0_mps: u16, pub hid_ep: u8, pub hid_ep_size: u16, pub port_count: u8, pub bulk_in_ep: u8, pub bulk_out_ep: u8, pub bulk_ep_size: u16, pub data_interface_number: u8, pub data_alt_setting: u8, pub config_value: u8, pub is_rndis: bool, pub i_mac_address: u8, pub mac_address: Option<[u8; 6]>,
}

Fields§

§kind: UsbDeviceKind§address: u8§interface_number: u8§ep0_mps: u16§hid_ep: u8§hid_ep_size: u16§port_count: u8§bulk_in_ep: u8§bulk_out_ep: u8§bulk_ep_size: u16§data_interface_number: u8§data_alt_setting: u8§config_value: u8

構成記述子の bConfigurationValue(SET_CONFIGURATION で使用)

§is_rndis: bool§i_mac_address: u8§mac_address: Option<[u8; 6]>

Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.