pub fn encode_payload(
payload: &[u8],
encoding: Encoding,
) -> Result<Vec<u8>, Status>Expand description
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.