Skip to main content

Crate bern_runtime

Crate bern_runtime 

Source
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 y grows downwards.
SessionSpec
Static description of the session layer, generated by the build.
SessionType
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.
WindowFacts
What the platform shows for one window instance.
WindowInfo
window.list entry for one open instance.
WindowInstance
WindowKind
One declared window kind.

Enums§

CloseDecision
A typed decision on a pending close confirmation.
CloseStep
What a close request leads to.
DecisionStep
What the target does after an accepted decision.
FactSource
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.
SizeState
Visibility
Where the window is, as the platform reports it.
WindowAction
Window actions; WindowFacts::actions lists those available now.

Traits§

SessionHandler
Executes framework session commands for one live UI session. Targets implement it so external entries reach the real control bindings.