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

USB Bus Number of the Trance Vibrator device

USB Address Number of the Trance Vibrator device

Methods

impl TranceVibeDeviceInfo
[src]

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.