pub fn decode_result<'a, T, E>(
items: ItemStream<'a>,
) -> MethodStream<'a, Result<T, E>>where
T: DeserializeOwned,
E: DeserializeOwned,Expand description
A Result method’s items: each data frame’s content is {"ok": t} or
{"err": e} (wire_result) and decodes as Ok(t)
/ Err(e). An Err is data — the activation saying no — so it does not
end the stream.