[][src]Trait sysfs_class::Brightness

pub trait Brightness: SysClass {
    fn brightness(&self) -> Result<u64> { ... }
fn max_brightness(&self) -> Result<u64> { ... }
fn set_brightness(&self, input: u64) -> Result<()> { ... }
fn set_if_lower_than(&self, percent: u64) -> Result<()> { ... } }

Provided methods

fn brightness(&self) -> Result<u64>

fn max_brightness(&self) -> Result<u64>

fn set_brightness(&self, input: u64) -> Result<()>

fn set_if_lower_than(&self, percent: u64) -> Result<()>

Sets the new brightness level if it is less than the current brightness.

Returns the brightness level that was set at the time of exiting the function.

Loading content...

Implementors

impl Brightness for Backlight[src]

impl Brightness for Leds[src]

Loading content...