pub struct SurfaceModeWatcher;Expand description
Per-shell-instance reader over the process-wide latch. Kept as a type
(mirroring crate::theme_override::ThemeOverrideWatcher/
crate::system_ui::SystemUiWatcher’s shape) even though it carries no
state of its own — current is a plain peek, not a
diffed poll, per the module docs’ Layering and thread contract.
Implementations§
Source§impl SurfaceModeWatcher
impl SurfaceModeWatcher
Sourcepub fn current() -> SurfaceMode
pub fn current() -> SurfaceMode
Read the latch’s current value. Not a “since last call” diff — a shell’s surface-creation path calls this once, at surface-creation time, and applies whatever it reads.
Trait Implementations§
Source§impl Debug for SurfaceModeWatcher
impl Debug for SurfaceModeWatcher
Auto Trait Implementations§
impl Freeze for SurfaceModeWatcher
impl RefUnwindSafe for SurfaceModeWatcher
impl Send for SurfaceModeWatcher
impl Sync for SurfaceModeWatcher
impl Unpin for SurfaceModeWatcher
impl UnsafeUnpin for SurfaceModeWatcher
impl UnwindSafe for SurfaceModeWatcher
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.