pub fn decode_message(
data: &[u8],
) -> Result<(String, u8, HostRequest), DecodeErr>Expand description
Decode a raw binary message into (request_id, HostRequest).
The message must start with PROTOCOL_DISCRIMINATOR (0x01).
Returns DecodeErr::UnknownProtocol if the first byte does not match.