pub fn parse_frame(buf: &[u8]) -> Result<Option<(Frame, usize)>, ProtocolError>Expand description
Checks whether buf contains a complete RESP3 frame and parses it.
Returns Ok(Some(frame)) if a complete frame was parsed,
Ok(None) if the buffer doesn’t contain enough data yet,
or Err(...) if the data is malformed.