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