#[non_exhaustive]pub enum ThemeChangeEvent {
Changed,
}Expand description
A signal that the OS theme has changed.
This enum carries no theme data – it is a notification only.
When you receive an event, call
SystemTheme::from_system()
to read the updated theme.
§Non-exhaustive
Future versions may add new variants. Always include a wildcard arm:
ⓘ
match event {
ThemeChangeEvent::Changed => { /* ... */ }
_ => { /* handle future variants */ }
}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.
Changed
The OS theme changed.
Trait Implementations§
Source§impl Clone for ThemeChangeEvent
impl Clone for ThemeChangeEvent
Source§fn clone(&self) -> ThemeChangeEvent
fn clone(&self) -> ThemeChangeEvent
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 moreSource§impl Debug for ThemeChangeEvent
impl Debug for ThemeChangeEvent
impl Eq for ThemeChangeEvent
Source§impl PartialEq for ThemeChangeEvent
impl PartialEq for ThemeChangeEvent
impl StructuralPartialEq for ThemeChangeEvent
Auto Trait Implementations§
impl Freeze for ThemeChangeEvent
impl RefUnwindSafe for ThemeChangeEvent
impl Send for ThemeChangeEvent
impl Sync for ThemeChangeEvent
impl Unpin for ThemeChangeEvent
impl UnsafeUnpin for ThemeChangeEvent
impl UnwindSafe for ThemeChangeEvent
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