pub fn read_reply_err(payload: &[u8]) -> Result<ErrorForm<'_>, Refusal>Expand description
A call’s reply_err payload read as an error, or the first refusal
that applies (core 0.92 §7.5): CH, the stamp, then the error’s byte, its
message and its detail, the detail’s bytes unread. The Encoding is not
read: ErrorForm::read gates on it.
§Errors
Refusal::Empty, Refusal::Reserved, Refusal::WrongSample
for any form but an error, Refusal::Short, then on the error’s byte
Refusal::Cause, Refusal::Detail, Refusal::Extension,
Refusal::MessageShort, Refusal::Utf8 or Refusal::Trailing,
in that order.