pub fn scan_page_as_wire_frames(page: ScanPage) -> QuadPageStreamExpand description
Re-frame one unary scan page as the frame sequence the
ScanPatternStream protocol speaks, so a unary-backed transport (the
trait’s default HexastoreScan::scan_pattern_stream, and test
doubles built on it) is indistinguishable from the partition’s walk: a
COMPLETED walk’s terminal verdict never rides a data frame — the rows
go out as one verdict-less frame and the verdict follows as one EMPTY
terminal frame — while a limit stop (Limited) and an unpurchased
verdict (None) stay on the single frame, exactly as the partition’s
limit-stop flush does. Emitting the empty terminal frame here is
deliberate: the consumer branches written for that shape (the driver
funnel’s terminal-frame break, bounded drains’ last-frame-wins) must
hold for every transport, not only the gRPC one.