Struct udev::MonitorBuilder
source · [−]pub struct MonitorBuilder { /* private fields */ }
Expand description
Monitors for device events.
A monitor communicates with the kernel over a socket. Filtering events is performed efficiently in the kernel, and only events that match the filters are received by the socket. Filters must be setup before listening for events.
Implementations
Adds a filter that matches events for devices with the given subsystem.
Adds a filter that matches events for devices with the given subsystem and device type.
Adds a filter that matches events for devices with the given tag.
Removes all filters currently set on the monitor.
Trait Implementations
Get a reference of the underlying struct. Read more
The udev
context with which this struct was created. This must live at least as long as
the struct itself or undefined behavior will result. Read more
Convert the object into the raw udev
pointer and the underlying pointer for this object. Read more
Create an object from a given raw pointer and udev
context pointer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more