pub struct SystemUiWatcher { /* private fields */ }Expand description
Per-shell-instance watcher over the process-wide system-UI slot: each
shell owns one, polling it once per frame (mirroring
crate::theme_override::ThemeOverrideWatcher) to detect a
set_system_ui_mode call since the last poll.
Implementations§
Source§impl SystemUiWatcher
impl SystemUiWatcher
Sourcepub fn poll(&mut self) -> Option<SystemUiMode>
pub fn poll(&mut self) -> Option<SystemUiMode>
Poll the slot once. Returns:
None— noset_system_ui_modecall since the last poll (or since construction); the shell does nothing.Some(mode)— a new mode to apply.
Trait Implementations§
Source§impl Debug for SystemUiWatcher
impl Debug for SystemUiWatcher
Auto Trait Implementations§
impl Freeze for SystemUiWatcher
impl RefUnwindSafe for SystemUiWatcher
impl Send for SystemUiWatcher
impl Sync for SystemUiWatcher
impl Unpin for SystemUiWatcher
impl UnsafeUnpin for SystemUiWatcher
impl UnwindSafe for SystemUiWatcher
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.