Skip to main content

Module host

Module host 

Source
Expand description

Phone and desktop host wrappers over the session bus (VIEW4.09).

These are thin facades over Session: they reuse the same Intent/Scene bus, transport, and pump, and add only the host-shaped policy each device needs. Nothing here re-implements transport, rendering, or diffing.

  • PhoneHost is a single-pane facade that caches the last rendered frame and, while the transport is offline, QUEUES Intents and replays them on PhoneHost::resume – an offline-safe phone that never drops an edit.
  • DesktopHost is a many-pane facade: it opens several panes/windows over one session, so an edit in one pane fans out (through Session::pump) to every pane that shares the edited resource.

Both stay generic over T: [Transport], so they drive the deterministic FixtureTransport in tests and a real transport later without change.

Structs§

DesktopHost
A desktop host facade: many panes/windows over one Session.
PhoneHost
A phone host facade: a single-pane Session that caches the last rendered frame and queues Intents while offline, flushing them on resume.

Constants§

PHONE_PANE
The single pane a PhoneHost renders into.