#[non_exhaustive]pub enum BacklightEvent {
InfoChanged(BacklightInfoUpdate),
}Expand description
An event emitted by BacklightFeature.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InfoChanged(BacklightInfoUpdate)
The user changed the backlight; carries the latest backlight info.
Trait Implementations§
Source§impl Clone for BacklightEvent
impl Clone for BacklightEvent
Source§fn clone(&self) -> BacklightEvent
fn clone(&self) -> BacklightEvent
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 BacklightEvent
Source§impl Debug for BacklightEvent
impl Debug for BacklightEvent
Source§impl EmittingFeature<BacklightEvent> for BacklightFeature
impl EmittingFeature<BacklightEvent> for BacklightFeature
Source§fn listen(&self) -> Receiver<BacklightEvent>
fn listen(&self) -> Receiver<BacklightEvent>
Creates a receiver that is being notified whenever a new event of type
T is emitted by the feature.impl Eq for BacklightEvent
Source§impl Hash for BacklightEvent
impl Hash for BacklightEvent
Source§impl PartialEq for BacklightEvent
impl PartialEq for BacklightEvent
impl StructuralPartialEq for BacklightEvent
Auto Trait Implementations§
impl Freeze for BacklightEvent
impl RefUnwindSafe for BacklightEvent
impl Send for BacklightEvent
impl Sync for BacklightEvent
impl Unpin for BacklightEvent
impl UnsafeUnpin for BacklightEvent
impl UnwindSafe for BacklightEvent
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