Struct udev::Enumerator [] [src]

pub struct Enumerator { /* 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 Enumerator
[src]

[src]

Creates a new Enumerator.

[src]

Adds a filter that matches only initialized devices.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Includes the device with the given syspath.

[src]

Scans /sys for devices matching the attached filters.

The devices will be sorted in dependency order.

Trait Implementations

impl Clone for Enumerator
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for Enumerator
[src]

[src]

Executes the destructor for this type. Read more

impl AsRaw<udev_enumerate> for Enumerator
[src]

[src]

Get a reference of the underlying struct. Read more

[src]

Convert the object into the underlying pointer. Read more

impl FromRawWithContext<udev_enumerate> for Enumerator
[src]

[src]

Create an object from a given raw pointer and the matching context. Read more