pub fn parse_header(data: &[u8]) -> Result<FrameHeader, FrameError>Expand description
Parses a 9-byte frame header from data (which may be longer; only
the first 9 bytes are read). Returns Err(Truncated) if fewer than
9 bytes.
Parses a 9-byte frame header.
ยงErrors
FrameError::Truncated when fewer than 9 bytes are provided.