pub fn parse_frame(data: &[u8]) -> Result<(u8, &[u8])>
Validate the CRC32C of an inbound frame and return the payload slice.
data must start at byte 0 (version byte). Returns (rpc_type, payload).
data
(rpc_type, payload)