pub fn parse_frame_slice(
input: &[u8],
) -> Result<Option<(Vec<u8>, Vec<(Vec<u8>, Vec<u8>)>, Option<Vec<u8>>, usize)>, String>Expand description
Parse a single STOMP frame from a raw byte slice.
Returns Ok(Some((command, headers, body, consumed_bytes))) when a full frame was parsed and how many bytes were consumed. Returns Ok(None) when more bytes are required. Returns Err on protocol errors.