Skip to main content

write_worker_data_plane_stream

Function write_worker_data_plane_stream 

Source
pub fn write_worker_data_plane_stream(
    writer: &mut impl Write,
    kind: WorkerDataPlaneFrameKind,
    sequence: u64,
    reader: &mut impl Read,
    payload_bytes: u64,
) -> Result<u64, WorkerDataPlaneFrameError>
Expand description

Write one header followed by an exact-length streamed payload.

The caller must separately bind raw payload bytes to a trusted descriptor and verify its digest. This function guarantees framing and constant memory.

ยงErrors

Rejects an over-limit declaration, a short source, or an I/O failure.