Struct niri_ipc::state::EventStreamState
source · pub struct EventStreamState {
pub workspaces: WorkspacesState,
pub windows: WindowsState,
pub keyboard_layouts: KeyboardLayoutsState,
}
Expand description
The full state communicated over the event stream.
Different parts of the state are not guaranteed to be consistent across every single event
sent by niri. For example, you may receive the first Event::WindowOpenedOrChanged
for a
just-opened window after an Event::WorkspaceActiveWindowChanged
for that window. Between
these two events, the workspace active window id refers to a window that does not yet exist in
the windows state part.
Fields§
§workspaces: WorkspacesState
State of workspaces.
windows: WindowsState
State of workspaces.
keyboard_layouts: KeyboardLayoutsState
State of the keyboard layouts.
Trait Implementations§
source§impl Debug for EventStreamState
impl Debug for EventStreamState
source§impl Default for EventStreamState
impl Default for EventStreamState
source§fn default() -> EventStreamState
fn default() -> EventStreamState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventStreamState
impl RefUnwindSafe for EventStreamState
impl Send for EventStreamState
impl Sync for EventStreamState
impl Unpin for EventStreamState
impl UnwindSafe for EventStreamState
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