Module state

Module state 

Source
Expand description

Helpers for keeping track of the event stream state.

  1. Create an EventStreamState using Default::default(), or any individual state part if you only care about part of the state.
  2. Connect to the niri socket and request an event stream.
  3. Pass every Event to EventStreamStatePart::apply on your state.
  4. Read the fields of the state as needed.

Structs§

ConfigState
The config state communicated over the event stream.
EventStreamState
The full state communicated over the event stream.
KeyboardLayoutsState
The keyboard layout state communicated over the event stream.
OverviewState
The overview state communicated over the event stream.
WindowsState
The windows state communicated over the event stream.
WorkspacesState
The workspaces state communicated over the event stream.

Traits§

EventStreamStatePart
Part of the state communicated via the event stream.