#[non_exhaustive]pub struct BacklightInfoUpdate {
pub nb_levels: u8,
pub current_level: u8,
pub status: BacklightStatus,
pub effect: BacklightEffect,
}Expand description
Payload of BacklightEvent::InfoChanged.
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.
current_level: u8Current intensity level.
status: BacklightStatusCurrent backlight status.
effect: BacklightEffectCurrently applied effect.
Trait Implementations§
Source§impl Clone for BacklightInfoUpdate
impl Clone for BacklightInfoUpdate
Source§fn clone(&self) -> BacklightInfoUpdate
fn clone(&self) -> BacklightInfoUpdate
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 BacklightInfoUpdate
Source§impl Debug for BacklightInfoUpdate
impl Debug for BacklightInfoUpdate
impl Eq for BacklightInfoUpdate
Source§impl Hash for BacklightInfoUpdate
impl Hash for BacklightInfoUpdate
Source§impl PartialEq for BacklightInfoUpdate
impl PartialEq for BacklightInfoUpdate
impl StructuralPartialEq for BacklightInfoUpdate
Auto Trait Implementations§
impl Freeze for BacklightInfoUpdate
impl RefUnwindSafe for BacklightInfoUpdate
impl Send for BacklightInfoUpdate
impl Sync for BacklightInfoUpdate
impl Unpin for BacklightInfoUpdate
impl UnsafeUnpin for BacklightInfoUpdate
impl UnwindSafe for BacklightInfoUpdate
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