Skip to main content

Module writer

Module writer 

Source
Expand description

Encode a message into a gRPC frame. See encode_frame.

Functionsยง

encode_frame
Encode one message as a framed gRPC wire-format buffer: [compressed=flag][len: u32 BE][payload].
encode_payload
Codec-agnostic variant: wrap already-encoded bytes in a gRPC frame, compressing if encoding is non-Identity. Used by ResponseSink / Channel after the codec encode fn pointer has produced the payload.