#[non_exhaustive]pub enum WindowQuery {
GetSize {
window_id: String,
tag: String,
},
GetPosition {
window_id: String,
tag: String,
},
IsMaximized {
window_id: String,
tag: String,
},
IsMinimized {
window_id: String,
tag: String,
},
GetMode {
window_id: String,
tag: String,
},
GetScaleFactor {
window_id: String,
tag: String,
},
MonitorSize {
window_id: String,
tag: String,
},
RawId {
window_id: String,
tag: String,
},
}Expand description
A query for window state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GetSize
Get Size.
GetPosition
Get Position.
IsMaximized
Is Maximized.
IsMinimized
Is Minimized.
GetMode
Get Mode.
GetScaleFactor
Get Scale Factor.
MonitorSize
Monitor Size.
RawId
Raw Id.
Implementations§
Source§impl WindowQuery
impl WindowQuery
Sourcepub fn from_wire(op: &str, window_id: &str, payload: &Value) -> Option<Self>
pub fn from_wire(op: &str, window_id: &str, payload: &Value) -> Option<Self>
Build a typed WindowQuery from the wire-protocol {op, window_id, payload} triple. Returns None for unrecognised
op strings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WindowQuery
impl RefUnwindSafe for WindowQuery
impl Send for WindowQuery
impl Sync for WindowQuery
impl Unpin for WindowQuery
impl UnsafeUnpin for WindowQuery
impl UnwindSafe for WindowQuery
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