Skip to main content

Module ops

Module ops 

Source
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§

SurfaceSpec
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 createSurface operation.
update_components
Builds an updateComponents operation.
update_data_model
Builds an updateDataModel operation.