pub fn decode_error_class(frame: &[u8]) -> Option<u8>Expand description
Extract the trailing error-class byte from a full MSG_ERROR frame, if
present. Returns None for non-error frames, malformed frames, and
legacy error frames that carry only the message string.