pub struct PowerControls { /* private fields */ }Implementations§
Source§impl PowerControls
impl PowerControls
pub fn new(max_mw: Milliwatts) -> Self
pub fn max_power(&self) -> Milliwatts
pub fn set_max_power(&mut self, max_mw: Milliwatts)
pub fn iter_brightness<'a, Color, P: AsRef<[Color]> + ?Sized>( &'a mut self, pixbuf: &'a P, ) -> impl Iterator<Item = Color> + use<'a, Color, P>
Trait Implementations§
Source§impl Brightness for PowerControls
impl Brightness for PowerControls
Source§impl Debug for PowerControls
impl Debug for PowerControls
Source§impl GammaCorrected for PowerControls
impl GammaCorrected for PowerControls
fn set_gamma(&mut self, gamma: GammaCurve)
Auto Trait Implementations§
impl Freeze for PowerControls
impl RefUnwindSafe for PowerControls
impl Send for PowerControls
impl Sync for PowerControls
impl Unpin for PowerControls
impl UnsafeUnpin for PowerControls
impl UnwindSafe for PowerControls
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