pub struct EventStreamState {
pub workspaces: WorkspacesState,
pub windows: WindowsState,
pub keyboard_layouts: KeyboardLayoutsState,
pub overview: OverviewState,
pub config: ConfigState,
pub casts: CastsState,
pub touchpad: TouchpadState,
}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 windows.
keyboard_layouts: KeyboardLayoutsStateState of the keyboard layouts.
overview: OverviewStateState of the overview.
config: ConfigStateState of the config.
casts: CastsStateState of screencasts.
touchpad: TouchpadStateState of touchpads.
Trait Implementations§
Source§impl Debug for EventStreamState
impl Debug for EventStreamState
Source§impl Default for EventStreamState
impl Default for EventStreamState
Auto Trait Implementations§
impl Freeze for EventStreamState
impl RefUnwindSafe for EventStreamState
impl Send for EventStreamState
impl Sync for EventStreamState
impl Unpin for EventStreamState
impl UnsafeUnpin 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