Struct libudev::Enumerator [] [src]

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

An enumeration context.

An Enumerator scans /sys for devices matching its filters. Filters are added to an Enumerator by calling its match_* and nomatch_* methods. After the filters are setup, the scan_devices() method finds devices in /sys that match the filters.

Methods

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

Creates a new Enumerator.

Adds a filter that matches only initialized devices.

Adds a filter that matches only devices that belong to the given kernel subsystem.

Adds a filter that matches only devices with the given attribute value.

Adds a filter that matches only devices with the given kernel device name.

Adds a filter that matches only devices with the given property value.

Adds a filter that matches only devices with the given tag.

Includes the parent device and all devices in the subtree of the parent device.

Adds a filter that matches only devices that don't belong to the given kernel subsystem.

Adds a filter that matches only devices that don't have the the given attribute value.

Includes the device with the given syspath.

Scans /sys for devices matching the attached filters.

The devices will be sorted in dependency order.

Trait Implementations

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

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