Expand description
Typed, whitelisted component-introspection registry for the dynamic
DOM n.components() / n.component("LayoutBox") reads (design 4.7).
Each exposable Lumen component registers a reader that turns its public
fields into a (name, value) string map. The read is bounded and typed;
there is no raw transmute or arbitrary memory access, and a name that
is not in the registry is an error rather than an empty read. The
runtime runs the registry against every element each tick and publishes
the resulting maps into the cross-thread snapshot the script hosts read.
Structs§
- Component
Introspection - The whitelist of exposable components and their field readers. Built
once by the runtime (see
with_defaults) and consulted per element.
Type Aliases§
- Component
Reader - Reader for one exposable component:
Some(map)when the entity carries it,Nonewhen absent. - Component
Value Map - A field map for one component instance:
(field, value)pairs.