[−][src]Struct jaylink::UsbDeviceInfo
Generic info about a USB device.
Returned by scan_usb
.
Implementations
impl UsbDeviceInfo
[src]
pub fn vid(&self) -> u16
[src]
Returns the vendor ID.
Vendor IDs are centrally registered and can be looked up for example at http://www.linux-usb.org/usb.ids.
pub fn pid(&self) -> u16
[src]
Returns the product ID.
pub fn bus_number(&self) -> u8
[src]
Returns the bus this device is attached to.
pub fn address(&self) -> u8
[src]
Returns the device address on the bus it's attached to.
pub fn port_number(&self) -> u8
[src]
Returns the port the device is attached to.
pub fn open(self) -> Result<JayLink>
[src]
Tries to open this USB device.
If successful, returns a JayLink
instance.
This method is equivalent to JayLink::open_usb
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UsbDeviceInfo
impl Send for UsbDeviceInfo
impl Sync for UsbDeviceInfo
impl Unpin for UsbDeviceInfo
impl UnwindSafe for UsbDeviceInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,