Skip to main content

encode_trailer_block

Function encode_trailer_block 

Source
pub fn encode_trailer_block(trailer: &Trailer) -> Bytes
Expand description

Encode just the trailing [u32 len | Trailer bytes] block. Used by the streaming response path, which forwards the message block straight from the inner gRPC frame (its [u32 len | message] layout already matches ours once the 1-byte compression flag is dropped) and only needs to append this at the end.