Expand description
Helpers for keeping track of the event stream state.
- Create an
EventStreamStateusingDefault::default(), or any individual state part if you only care about part of the state. - Connect to the niri socket and request an event stream.
- Pass every
EventtoEventStreamStatePart::applyon your state. - Read the fields of the state as needed.
Structs§
- Config
State - The config state communicated over the event stream.
- Event
Stream State - The full state communicated over the event stream.
- Keyboard
Layouts State - The keyboard layout state communicated over the event stream.
- Overview
State - The overview state communicated over the event stream.
- Windows
State - The windows state communicated over the event stream.
- Workspaces
State - The workspaces state communicated over the event stream.
Traits§
- Event
Stream State Part - Part of the state communicated via the event stream.