Function modbus_core::rtu::extract_frame
source · pub fn extract_frame(
buf: &[u8],
pdu_len: usize
) -> Result<Option<DecodedFrame<'_>>, Error>
Expand description
Extract a PDU frame out of a buffer.
pub fn extract_frame(
buf: &[u8],
pdu_len: usize
) -> Result<Option<DecodedFrame<'_>>, Error>
Extract a PDU frame out of a buffer.