Skip to main content

write_worker_data_plane_frame

Function write_worker_data_plane_frame 

Source
pub fn write_worker_data_plane_frame(
    writer: &mut impl Write,
    kind: WorkerDataPlaneFrameKind,
    sequence: u64,
    payload: &[u8],
) -> Result<(), WorkerDataPlaneFrameError>
Expand description

Write one bounded in-memory frame.

ยงErrors

Rejects an oversized payload before writing and returns a stable I/O error if the header or complete payload cannot be written.