parse_frame_header

Function parse_frame_header 

Source
pub fn parse_frame_header(data: &[u8]) -> Result<DataFrameHeader, FrameError>
Available on crate feature transport only.
Expand description

Parse a received frame to determine its type and extract the header.

This only parses the unencrypted header. The payload must be decrypted before parsing the payload header.