pub struct Watcher { /* private fields */ }Expand description
A handle to a background theme-change watcher.
Dropping the Watcher stops the underlying platform watcher and joins its
background thread (where applicable).
Only mode transitions are emitted: if the OS reports the same mode twice in a row, no duplicate message is sent.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Watcher
impl !Sync for Watcher
impl !UnwindSafe for Watcher
impl Freeze for Watcher
impl Send for Watcher
impl Unpin for Watcher
impl UnsafeUnpin for Watcher
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