Function diagnostics_log_encoding::parse::parse_record
source · pub fn parse_record(buf: &[u8]) -> Result<(Record, &[u8]), ParseError>
Expand description
Attempt to parse a diagnostic record from the head of this buffer, returning the record and any unused portion of the buffer if successful.