[−][src]Struct sysfs_class::Backlight
Fetch and modify brightness values of backlight controls.
Methods
impl Backlight[src]
pub fn actual_brightness(&self) -> Result<u64>[src]
pub fn bl_power(&self) -> Result<u64>[src]
pub fn type_(&self) -> Result<String>[src]
Trait Implementations
impl SysClass for Backlight[src]
fn class() -> &'static str[src]
unsafe fn from_path_unchecked(path: PathBuf) -> Self[src]
fn path(&self) -> &Path[src]
fn base() -> &'static str[src]
fn dir() -> PathBuf[src]
fn from_path(path: &Path) -> Result<Self>[src]
fn all() -> Result<Vec<Self>>[src]
fn iter() -> Box<dyn Iterator<Item = Result<Self>>> where
Self: 'static, [src]
Self: 'static,
fn new(id: &str) -> Result<Self>[src]
fn id(&self) -> &str[src]
fn read_file<P: AsRef<Path>>(&self, name: P) -> Result<String>[src]
fn parse_file<F: FromStr, P: AsRef<Path>>(&self, name: P) -> Result<F> where
F::Err: Display, [src]
F::Err: Display,
fn trim_file<P: AsRef<Path>>(&self, name: P) -> Result<String>[src]
fn write_file<P: AsRef<Path>, S: AsRef<[u8]>>(
&self,
name: P,
data: S
) -> Result<()>[src]
&self,
name: P,
data: S
) -> Result<()>
impl Brightness for Backlight[src]
fn brightness(&self) -> Result<u64>[src]
fn max_brightness(&self) -> Result<u64>[src]
fn set_brightness(&self, input: u64) -> Result<()>[src]
fn set_if_lower_than(&self, percent: u64) -> Result<()>[src]
impl Clone for Backlight[src]
Auto Trait Implementations
impl Send for Backlight
impl Unpin for Backlight
impl Sync for Backlight
impl UnwindSafe for Backlight
impl RefUnwindSafe for Backlight
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,