Expand description
Building the operation stream that renders a surface.
Three builders plus assemble_ops, which puts them in the order a
renderer expects: create the surface, define its components, then supply the
data.
§intent = "update" must not re-create the surface
createSurface allocates a surfaceId and fixes its catalog. Sending it
again for a surface that already exists is an error per spec — the renderer
rejects it, and the frontend surfaces that failure to the user. Editing an
existing surface therefore means sending only updateComponents and
updateDataModel. Intent::Update encodes exactly that.
Structs§
- Surface
Spec - What a surface should look like, as the authoring layer sees it.
Enums§
- Intent
- Whether the caller is building a new surface or editing one that exists.
Functions§
- assemble_
ops - Assembles the full operation stream for a surface.
- create_
surface - Builds a
createSurfaceoperation. - update_
components - Builds an
updateComponentsoperation. - update_
data_ model - Builds an
updateDataModeloperation.