Struct udev::monitor::Monitor [-]  [+] [src]

pub struct Monitor<'u> {
    // some fields omitted
}

Methods

impl<'u> Monitor<'u>

fn udev(&self) -> &Udev

Get the udev context.

fn filter_by_subsystem(self, subsystem: &str) -> Monitor<'u>

Filter by subsystem.

Exclude devices that don't match the specified subsystem or a previously specified subsystem.

fn filter_by_subsystem_devtype(self, subsystem: &str, devtype: &str) -> Monitor<'u>

Filter by subsystem/devtype combination.

Exclude devices that don't match the specified subsystem/devtype combination or a previously specified subsystem/devtype combination (or any subsystem previously specified in a filter_subsystem invocation).

fn filter_by_tag(self, tag: &str) -> Monitor<'u>

Filter by tag.

Exclude devices that don't match the specified tag or a previously specified tag.

fn clear_filters(self) -> Monitor<'u>

Reset all filters on this monitor. No devices will be excluded.

fn iter<'m>(&'m self) -> MonitorIterator<'m, 'u>

Iterate over udev events.

  1. The returned iterator will block on calls to next until their a device is available.
  2. The returned iterator will never end (next will never return None).

Trait Implementations

impl<'u> Drop for Monitor<'u>

fn drop(&mut self)