Struct libtrancevibe::TranceVibeDevice [] [src]

pub struct TranceVibeDevice<'a> { /* fields omitted */ }

Struct representing an open, usable device.

Given a successfully opened libusb::DeviceHandle, this struct manages the handle lifetime and gives write access for setting the running speed of the TranceVibrator.

Methods

impl<'a> TranceVibeDevice<'a>
[src]

Set the TranceVibrator to a certain running speed.

Allows the user to set the TranceVibrator speed to somewhere between 0 (off) and 255 (full power). Command may block for up to one second.

Returns a libusb::Result containing either the amount of bytes written (should always be 1), or an error.