Struct libtrancevibe::TranceVibeDeviceInfo
[−]
[src]
pub struct TranceVibeDeviceInfo { pub bus_number: u8, pub address: u8, // some fields omitted }
Struct that holds USB context for a device, as well as its bus/address. Used to statically identify a TranceVibrator on a system (since multiple devices will have same VID/PID and no unique serial)
Fields
bus_number: u8
USB Bus Number of the Trance Vibrator device
address: u8
USB Address Number of the Trance Vibrator device
Methods
impl TranceVibeDeviceInfo
[src]
fn open(&mut self) -> Result<TranceVibeDevice>
Tries to open the device represented by this struct
Tries to open and return device represented by the address data in this struct. Returns a Result with an opened TranceVibeDevice.
Error
Returns libusb specific errors if any arise. If the device represented by this struct no longer exists, returns libusb::Error::NoDevice.