Expand description
Helpers for keeping track of the event stream state.
- Create an
EventStreamState
usingDefault::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
Event
toEventStreamStatePart::apply
on your state. - Read the fields of the state as needed.
Structs§
- The full state communicated over the event stream.
- The keyboard layout state communicated over the event stream.
- The windows state communicated over the event stream.
- The workspaces state communicated over the event stream.
Traits§
- Part of the state communicated via the event stream.