Function modbus_core::rtu::decode
source · pub fn decode(
decoder_type: DecoderType,
buf: &[u8]
) -> Result<Option<(DecodedFrame<'_>, FrameLocation)>, Error>
Expand description
Decode RTU PDU frames from a buffer.
pub fn decode(
decoder_type: DecoderType,
buf: &[u8]
) -> Result<Option<(DecodedFrame<'_>, FrameLocation)>, Error>
Decode RTU PDU frames from a buffer.