encode_parser_control

Function encode_parser_control 

Source
pub fn encode_parser_control(
    control: &ParserControl,
) -> Result<Vec<u8>, ParserProtocolError>
Expand description

Deterministically serialize and frame one strict control message.

Struct field order and closed enums define the canonical JSON ordering; the protocol deliberately contains no map-valued control fields.

ยงErrors

Returns an error for serialization failure or a control-frame byte overflow.