pub fn try_parse_adu(buf: &[u8]) -> Result<Option<(Adu, usize)>, FrameError>Expand description
Try to pull one complete ADU off the front of buf.
Returns Ok(None) when more bytes are needed (the caller should accumulate and retry),
Ok(Some((adu, consumed))) on success, and Err when the stream is not Modbus.