Skip to main content

Module frame

Module frame 

Source
Expand description

Frames are the leaf of the model: a sized, optionally timestamped payload within a group.

A group is a single ordered stream, so at most one frame is ever in flight. Completed frames are plain data (Frame); the in-flight frame is written through Producer, which borrows its parent group::Producer exclusively so the borrow checker enforces that only one frame is open at a time. A Consumer reads one frame, sharing the group’s channel rather than a per-frame one.

Structs§

Consumer
Reads one frame’s payload, streaming as bytes arrive for the in-flight tail.
Frame
A completed frame: an optional timestamp, its full, contiguous payload, and when it was created in this node’s cache.
Info
A chunk of data with an upfront size and an optional presentation timestamp.
Producer
Writes the payload of a group’s single in-flight frame in one or more chunks.