Skip to main content

encode_control_object

Function encode_control_object 

Source
pub fn encode_control_object<T>(
    envelope: &ControlObjectEnvelope<T>,
) -> Result<Vec<u8>, EnvelopeCodecError>
where T: Serialize,
Expand description

Encodes a control-object envelope as its durable JSON representation.

Encoding fails when the family version is unsupported, the in-memory checksum is stale, or JSON serialization fails. See mutable control-object rules.