Skip to main content

encode_stream_response

Function encode_stream_response 

Source
pub fn encode_stream_response(
    resp: &StreamResponse,
    ext: Option<&StreamResponseExt>,
) -> Result<Vec<u8>, Error>
Expand description

Encode a StreamResponse with its optional trailing StreamResponseExt (ADR 013 §Tier 1, two-phase). See encode_stream_request for why the two values are encoded separately.

§Errors

Propagates a postcard::Error if serialization fails.