pub struct EventStreamState {
pub workspaces: WorkspacesState,
pub windows: WindowsState,
pub keyboard_layouts: KeyboardLayoutsState,
pub overview: OverviewState,
pub config: ConfigState,
}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: WorkspacesStateState of workspaces.
windows: WindowsStateState of workspaces.
keyboard_layouts: KeyboardLayoutsStateState of the keyboard layouts.
overview: OverviewStateState of the overview.
config: ConfigStateState of the config.
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