pub enum BrightnessBand {
Dark,
Dim,
Bright,
}Expand description
Ambient light level — quantised from the CyperPi light sensor.
Variants§
Dark
Very low ambient light (night, dark room).
Dim
Moderate ambient light (indoor daytime, lamp).
Bright
High ambient light (bright room, direct sunlight).
Trait Implementations§
Source§impl Clone for BrightnessBand
impl Clone for BrightnessBand
Source§fn clone(&self) -> BrightnessBand
fn clone(&self) -> BrightnessBand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrightnessBand
impl Debug for BrightnessBand
Source§impl Hash for BrightnessBand
impl Hash for BrightnessBand
Source§impl PartialEq for BrightnessBand
impl PartialEq for BrightnessBand
impl Copy for BrightnessBand
impl Eq for BrightnessBand
impl StructuralPartialEq for BrightnessBand
Auto Trait Implementations§
impl Freeze for BrightnessBand
impl RefUnwindSafe for BrightnessBand
impl Send for BrightnessBand
impl Sync for BrightnessBand
impl Unpin for BrightnessBand
impl UnsafeUnpin for BrightnessBand
impl UnwindSafe for BrightnessBand
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