Module hotplug

Source
Expand description

Support for hotplug events.

This module is currently Linux-specific. It uses the udev netlink socket to listen for events from a udev implementation.

The recommended way to support device hotplug is to use the hotplug::enumerate function, which returns an iterator over all devices that are or will be plugged into the system.

Structs§

HotplugMonitor
Monitors the system for newly plugged in input devices.

Functions§

enumerate
Enumerates all evdev devices, including hotplugged ones.