pub struct Backlight {
pub name: String,
pub brightness: u32,
pub max_brightness: u32,
}Expand description
A backlight in /sys/class/backlight.
Fields§
§name: StringIts sysfs name, such as intel_backlight, which
Brightness::set takes.
brightness: u32How bright it is, from 0 to max_brightness.
max_brightness: u32The brightest it goes.
Trait Implementations§
impl Eq for Backlight
impl StructuralPartialEq for Backlight
Auto Trait Implementations§
impl Forget for Backlight
impl Freeze for Backlight
impl Move for Backlight
impl RefUnwindSafe for Backlight
impl Send for Backlight
impl Sync for Backlight
impl Unpin for Backlight
impl UnsafeUnpin for Backlight
impl UnwindSafe for Backlight
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more