pub(crate) enum WindowKnowledge {
Fullscreen(bool),
Unknowable,
}Expand description
Whether the platform can answer “is a fullscreen window present?”.
Linux Wayland uses Unknowable; everywhere else passes a concrete
Fullscreen(bool). Exists so the combining logic in
pause_decision is one pure function with one truth-table test,
instead of three near-identical chains duplicated per platform.
Variants§
Trait Implementations§
Source§impl Clone for WindowKnowledge
impl Clone for WindowKnowledge
Source§fn clone(&self) -> WindowKnowledge
fn clone(&self) -> WindowKnowledge
Returns a duplicate of the value. Read more
1.0.0 · 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 WindowKnowledge
impl Debug for WindowKnowledge
Source§impl PartialEq for WindowKnowledge
impl PartialEq for WindowKnowledge
impl Copy for WindowKnowledge
impl Eq for WindowKnowledge
impl StructuralPartialEq for WindowKnowledge
Auto Trait Implementations§
impl Freeze for WindowKnowledge
impl RefUnwindSafe for WindowKnowledge
impl Send for WindowKnowledge
impl Sync for WindowKnowledge
impl Unpin for WindowKnowledge
impl UnsafeUnpin for WindowKnowledge
impl UnwindSafe for WindowKnowledge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.