Struct libudev::Monitor [] [src]

pub struct Monitor<'a> { /* fields omitted */ }

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.

Methods

impl<'a> Monitor<'a>
[src]

Creates a new Monitor.

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.

Listens for events matching the current filters.

This method consumes the Monitor.

Trait Implementations

impl<'a> Drop for Monitor<'a>
[src]

A method called when the value goes out of scope. Read more