Expand description
UI session runtime shared by every target.
A UI session owns window instances and the typed session drafts each window carries. It validates every write against the declared schema and gives each window instance a generation, so a reference to a closed window is rejected instead of writing into a newer instance. It also runs the close protocol: a close request either closes the window or yields a confirmation bound to the window’s generation and draft revision, so a decision made before later edits cannot discard them. It contains no UI SDK code: targets report window facts and forward control input.
Modules§
- query
- Asynchronous query resources and clocks for scenarios.
Structs§
- Confirmation
- A close request that needs a decision. It names the window generation and the draft revision it was made for.
- Frame
- Outer frame in points. The origin is the top-left corner of the main
display and
ygrows downwards. - Session
Spec - Static description of the session layer, generated by the build.
- Session
Type - One declared session state type.
- Sessions
- Live UI sessions that external entries may address by
session_id. - UiSession
- Window instances and drafts of one UI session.
- Window
Facts - What the platform shows for one window instance.
- Window
Info window.listentry for one open instance.- Window
Instance - Window
Kind - One declared window kind.
Enums§
- Close
Decision - A typed decision on a pending close confirmation.
- Close
Step - What a close request leads to.
- Decision
Step - What the target does after an accepted decision.
- Fact
Source - Who caused the latest change of a window’s facts.
- Lifecycle
- Lifecycle of an open window instance.
- Presentation
- How a window kind is presented by the target.
- Size
State - Visibility
- Where the window is, as the platform reports it.
- Window
Action - Window actions;
WindowFacts::actionslists those available now.
Traits§
- Session
Handler - Executes framework session commands for one live UI session. Targets implement it so external entries reach the real control bindings.