pub fn enumerate_hotplug() -> Result<EnumerateHotplug>Expand description
Enumerates all currently plugged-in Evdev devices, and future hotplugged devices.
The returned iterator will first yield the devices currently present on the system (like
enumerate), and then blocks until new devices are plugged into the system (using
HotplugMonitor).
This allows an application to process a single stream of Evdevs to both open an already
plugged-in device on startup, but also to react to hot-plugged devices automatically, which is
typically the desired UX of applications.
If opening the HotplugMonitor fails, this will degrade gracefully and only yield the
currently plugged-in devices.