pub struct WindowSnapshot {
pub label: String,
pub kind: WindowKind,
pub parent_label: Option<String>,
pub hwnd: Option<u64>,
pub visible: bool,
pub iconic: bool,
pub last_rect: Option<Rect>,
pub foregrounded_since_open: bool,
}Expand description
Phase D.1 — serializable view of one window in the launcher
reducer’s canonical state. Maps 1:1 to the launcher’s internal
WindowMirror minus opened_at (which is launcher-local clock
data not meaningful to subscribers).
Fields§
§label: String§kind: WindowKind§parent_label: Option<String>§hwnd: Option<u64>§visible: bool§iconic: bool§last_rect: Option<Rect>§foregrounded_since_open: boolTrait Implementations§
Source§impl Clone for WindowSnapshot
impl Clone for WindowSnapshot
Source§fn clone(&self) -> WindowSnapshot
fn clone(&self) -> WindowSnapshot
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 WindowSnapshot
impl Debug for WindowSnapshot
Source§impl<'de> Deserialize<'de> for WindowSnapshot
impl<'de> Deserialize<'de> for WindowSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WindowSnapshot
impl PartialEq for WindowSnapshot
Source§impl Serialize for WindowSnapshot
impl Serialize for WindowSnapshot
impl Eq for WindowSnapshot
impl StructuralPartialEq for WindowSnapshot
Auto Trait Implementations§
impl Freeze for WindowSnapshot
impl RefUnwindSafe for WindowSnapshot
impl Send for WindowSnapshot
impl Sync for WindowSnapshot
impl Unpin for WindowSnapshot
impl UnwindSafe for WindowSnapshot
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