Skip to main content

peek_message_type

Function peek_message_type 

Source
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.