pub fn read_value<'a>(
encoding: &str,
payload: &'a [u8],
) -> Result<Envelope<'a>, FormRefusal>Expand description
A call’s reply payload read by its Encoding (observer §7.3, “A call’s
forms first”): under zenoh/bytes (ENCODING, exactly) as the value
form (read_reply). A reply refused, by its bytes or by another
Encoding, is malformed, undecodable and never read as a record with
no form, and an answer all the same: it came on the call’s key (core
§5.1, “Reading a value”, “Retries”).
§Errors
FormRefusal::Encoding under any other Encoding, a schema suffix
included (core 0.99 removed the bare wire, #985’s C4d), else
read_reply’s refusal.