Function rusb::disable_device_discovery

source ·
pub fn disable_device_discovery() -> Result<()>
Expand description

Disable device scanning in libusb init.

Hotplug functionality will also be deactivated.

This is a Linux only option and it must be set before any [Context] creation.

The option is useful in combination with [Context::open_device_with_fd()], which can access a device directly without prior device scanning.