Module hotplug

Module hotplug 

Source
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:

OSDetails
LinuxUses the NETLINK_KOBJECT_UEVENT socket. Requires udev.
FreeBSDUses devd’s seqpacket socket at /var/run/devd.seqpacket.pipe.

Structs§

HotplugEvent
An event emitted by the HotplugMonitor.
HotplugMonitor
Monitors the system for newly plugged in input devices.
IntoIter
An owning Iterator over hotplug events.
Iter
An Iterator over hotplug events.