pub struct UsbDevice {
pub info: UsbInfo,
/* private fields */
}Expand description
USB HID based device
This type is deliberately non-Send to avoid potential quirks that might happen when
the underlying hidapi type changes threads.
Fields§
§info: UsbInfoImplementations§
Trait Implementations§
Source§impl From<UsbDevice> for GenericDevice
Available on crate feature transport_usb only.
impl From<UsbDevice> for GenericDevice
Available on crate feature
transport_usb only.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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more