pub struct Context { /* private fields */ }
Expand description

A libusb context.

Implementations

Opens a new libusb context.

Sets the log level of a libusb context.

Tests whether the running libusb library supports hotplug.

Tests whether the running libusb library has HID access.

Tests whether the running libusb library supports detaching the kernel driver.

Returns a list of the current USB devices. The context must outlive the device list.

Trait Implementations

Closes the libusb context.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.