pub struct NiriWorkspace {
pub id: u64,
pub idx: u32,
pub name: Option<String>,
pub output: Option<String>,
pub is_active: bool,
pub is_focused: bool,
pub is_urgent: bool,
pub active_window_id: Option<u64>,
}Expand description
One of niri’s workspaces, as its IPC describes it.
Fields§
§id: u64niri’s id for it, which stays while it exists: the key to give
children_keyed, and what Niri::focus_workspace takes.
idx: u32Its place on its output, from 1. It changes as workspaces move.
name: Option<String>Its name, if the config gave it one.
output: Option<String>The output it is on, such as DP-1; None while no output is
connected.
is_active: boolWhether it is shown on its output.
is_focused: boolWhether it has the focus; one workspace across all outputs does.
is_urgent: boolWhether a window on it asks for attention.
active_window_id: Option<u64>The id of the window that is active on it, if any.
Trait Implementations§
Source§impl Clone for NiriWorkspace
impl Clone for NiriWorkspace
Source§impl Debug for NiriWorkspace
impl Debug for NiriWorkspace
Source§impl<'de> Deserialize<'de> for NiriWorkspace
impl<'de> Deserialize<'de> for NiriWorkspace
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
impl Eq for NiriWorkspace
Source§impl PartialEq for NiriWorkspace
impl PartialEq for NiriWorkspace
impl StructuralPartialEq for NiriWorkspace
Auto Trait Implementations§
impl Forget for NiriWorkspace
impl Freeze for NiriWorkspace
impl Move for NiriWorkspace
impl RefUnwindSafe for NiriWorkspace
impl Send for NiriWorkspace
impl Sync for NiriWorkspace
impl Unpin for NiriWorkspace
impl UnsafeUnpin for NiriWorkspace
impl UnwindSafe for NiriWorkspace
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