[−][src]Crate rust_lcd
Iteration over backlight devices.
Usage
The default directory for backlight devices is BACKLIGHT_PATH,
whose value is "/sys/class/backlight".
The DeviceIter iterates over...
Examples
use std::path::Path; for device in DeviceIter::default() { assert_eq!( Path::new(BACKLIGHT_PATH), device.path().parent().unwrap()); }
Structs
| Device | A single backlight device that can be toggled ON and OFF. |
| DeviceIter | An iterator over the devices found in a given folder. |
Constants
| BACKLIGHT_PATH | The default directory where to look for devices. |
| BL_POWER | The default name of the file controlling the power of the device. |
Functions
| iterate_devices | Iterate over devices in |