pub fn decode_control_object<T>(
bytes: &[u8],
expected_kind: ControlObjectKind,
) -> Result<ControlObjectEnvelope<T>, EnvelopeCodecError>where
T: DeserializeOwned,Expand description
Decodes and verifies a durable JSON control object of expected_kind.
Decoding fails for invalid JSON, an unknown or mismatched kind, an
unsupported family version, a checksum mismatch, or an invalid T. See
mutable control-object rules.