pub fn decode_request(pdu: &[u8]) -> Result<RequestPdu<'_>, DecodeError>Expand description
Decode a raw PDU into a typed request.
The input slice starts at the function code byte.
ยงErrors
Returns a DecodeError if the PDU is malformed or the function code is unknown.