Skip to main content

read_reply

Function read_reply 

Source
pub fn read_reply(payload: &[u8]) -> Result<Envelope<'_>, Refusal>
Expand description

A call’s reply payload read as a value, or the first refusal that applies (core 0.92 §7.5). A GET’s reply that represents a put is a put (Envelope::parse), never this. The Encoding is not read.

§Errors

Refusal::Empty, Refusal::Reserved, Refusal::WrongSample for any form but a value, or Refusal::Short, in that order.