pub struct Brightness { /* private fields */ }Expand description
Screen brightness, from cx.brightness(). Cloning it is cheap.
Implementations§
Source§impl Brightness
impl Brightness
Sourcepub fn devices(&self) -> ReadSignal<Vec<Backlight>>
pub fn devices(&self) -> ReadSignal<Vec<Backlight>>
Every backlight, by name. Empty on a machine with none.
Sourcepub fn set(&self, name: &str, value: u32)
pub fn set(&self, name: &str, value: u32)
Asks logind to set the backlight name to value, held to its
max_brightness. It shows in devices once the
kernel has it. Before logind is reached, as from the root closure,
the latest value for each backlight waits and is sent once it is.
An unknown name or a refusal is logged, and so, once, is a value
waiting for a logind that isn’t there.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Brightness
impl !Send for Brightness
impl !Sync for Brightness
impl !UnwindSafe for Brightness
impl Forget for Brightness
impl Freeze for Brightness
impl Move for Brightness
impl Unpin for Brightness
impl UnsafeUnpin for Brightness
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