#[non_exhaustive]pub struct BacklightInfo {
pub nb_levels: u8,
pub current_level: u8,
pub status: BacklightStatus,
pub effect: BacklightEffect,
pub oob_duration_hands_out: u16,
pub oob_duration_hands_in: u16,
pub oob_duration_powered: u16,
}Expand description
Backlight information from BacklightFeature::get_backlight_info.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.nb_levels: u8Number of user-selectable intensity levels (0..nb_levels).
current_level: u8Current intensity level.
status: BacklightStatusCurrent backlight status.
effect: BacklightEffectCurrently applied effect.
oob_duration_hands_out: u16Out-of-box fade-out duration with hands out, in 5-second units.
oob_duration_hands_in: u16Out-of-box fade-out duration with hands in, in 5-second units.
oob_duration_powered: u16Out-of-box fade-out duration while externally powered, in 5-second units.
Trait Implementations§
Source§impl Clone for BacklightInfo
impl Clone for BacklightInfo
Source§fn clone(&self) -> BacklightInfo
fn clone(&self) -> BacklightInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BacklightInfo
Source§impl Debug for BacklightInfo
impl Debug for BacklightInfo
impl Eq for BacklightInfo
Source§impl Hash for BacklightInfo
impl Hash for BacklightInfo
Source§impl PartialEq for BacklightInfo
impl PartialEq for BacklightInfo
impl StructuralPartialEq for BacklightInfo
Auto Trait Implementations§
impl Freeze for BacklightInfo
impl RefUnwindSafe for BacklightInfo
impl Send for BacklightInfo
impl Sync for BacklightInfo
impl Unpin for BacklightInfo
impl UnsafeUnpin for BacklightInfo
impl UnwindSafe for BacklightInfo
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