pub struct UsbDevice {
pub address: u8,
pub port: u8,
pub speed: UsbSpeed,
pub descriptor: UsbDeviceDescriptor,
pub current_configuration: Option<u8>,
pub connected: bool,
}Expand description
USB device representation
Fields§
§address: u8§port: u8§speed: UsbSpeed§descriptor: UsbDeviceDescriptor§current_configuration: Option<u8>§connected: boolImplementations§
Source§impl UsbDevice
impl UsbDevice
Sourcepub fn get_device_class(&self) -> DeviceClass
pub fn get_device_class(&self) -> DeviceClass
Get device class
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UsbDevice
impl RefUnwindSafe for UsbDevice
impl Send for UsbDevice
impl Sync for UsbDevice
impl Unpin for UsbDevice
impl UnwindSafe for UsbDevice
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)