pub fn peek_message_type(body: &[u8]) -> Option<MessageType>Expand description
Decode only the message kind from an encoded control body, without
copying its payload. Returns None when the body is not a CBOR envelope.
pub fn peek_message_type(body: &[u8]) -> Option<MessageType>Decode only the message kind from an encoded control body, without
copying its payload. Returns None when the body is not a CBOR envelope.