Skip to main content

Module transport

Module transport 

Source
Expand description

macOS / desktop config transport selection. Apple host→widget transport: one driver, chosen by config (not runtime fan-out).

Availability (containerURL, suite exists) is not delivery proof — the developer picks crate::config::TransportKind from signing knowledge.

Structs§

FakeTransport
In-memory transport for unit tests.
Receipt
Widget-side ack that it rendered a config from a specific transport.

Constants§

NAME_APPGROUP
Driver name written into widget receipts (appgroup file transport).
NAME_CONTAINER
Driver name for widget extension container file.
NAME_DEFAULTS
Driver name for App Group UserDefaults suite.

Traits§

Transport
Host-side read/write channel to the widget extension.

Functions§

build_driver
Fail loud when the chosen transport cannot be constructed.
pick_freshest_maps
Thin alias of store::pick_freshest for transport callers.
resolve_driver
Resolve a single host transport from plugin config (+ WIDGET_TRANSPORT).
validate_mobile_transport
iOS: only appGroup (or auto → appGroup). Other kinds fail at init. Android: Apple-only transports are ignored (treated as AppGroup / SharedPreferences).