pub fn parse(frame: &[u8], format: Format) -> Result<Header<'_>, HeaderError>
Parse a frame in the given format.