pub struct Brightness { /* private fields */ }
Implementations§
Source§impl Brightness
impl Brightness
pub fn set_brightness(&self, value: i32) -> Result<bool, Error>
pub fn get_max_brightness(&self) -> Result<i32, Error>
pub fn get_brightness(&self) -> Result<i32, Error>
pub fn get_percent(&self) -> Result<i32, Error>
pub fn set_percent(&self, value: i32) -> Result<bool, Error>
Trait Implementations§
Source§impl Default for Brightness
impl Default for Brightness
Source§fn default() -> Brightness
fn default() -> Brightness
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Brightness
impl RefUnwindSafe for Brightness
impl Send for Brightness
impl Sync for Brightness
impl Unpin for Brightness
impl UnwindSafe 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