pub enum ProbedDevice {
Device(DeviceInfo),
Hub(HubDeviceInfo),
}Variants§
Device(DeviceInfo)
Hub(HubDeviceInfo)
Implementations§
Source§impl ProbedDevice
impl ProbedDevice
pub fn id(&self) -> usize
pub fn descriptor(&self) -> &DeviceDescriptor
pub fn configurations(&self) -> &[ConfigurationDescriptor]
pub fn product_id(&self) -> u16
pub fn vendor_id(&self) -> u16
pub fn as_device_info(&self) -> Option<&DeviceInfo>
pub fn into_device_info(self) -> Option<DeviceInfo>
Trait Implementations§
Source§impl Debug for ProbedDevice
impl Debug for ProbedDevice
Auto Trait Implementations§
impl !RefUnwindSafe for ProbedDevice
impl !UnwindSafe for ProbedDevice
impl Freeze for ProbedDevice
impl Send for ProbedDevice
impl Sync for ProbedDevice
impl Unpin for ProbedDevice
impl UnsafeUnpin for ProbedDevice
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