Expand description
Support for hotplug events.
The recommended way to support device hotplug in applications is to use the
enumerate_hotplug function, which returns an iterator over all devices that are or will be
plugged into the system.
§Platform Support
Hotplug functionality is supported on Linux and FreeBSD, as follows:
| OS | Details |
|---|---|
| Linux | Uses the NETLINK_KOBJECT_UEVENT socket. Requires udev. |
| FreeBSD | Uses devd’s seqpacket socket at /var/run/devd.seqpacket.pipe. |
Structs§
- Hotplug
Event - An event emitted by the
HotplugMonitor. - Hotplug
Monitor - Monitors the system for newly plugged in input devices.
- Into
Iter - An owning
Iteratorover hotplug events. - Iter
- An
Iteratorover hotplug events.