pub fn decode_control(payload: &[u8]) -> Result<ControlMessage>Expand description
Decode a control message from JSON bytes.
Known "type" envelopes are returned as typed Rust structs. Unknown JSON
is returned as ControlMessage::Raw, matching Python’s raw-dict fallback.