pub fn decode_reply(bytes: &[u8]) -> Result<Reply, CallError>Expand description
What: Reads a complete reply message. Why: Only the type, the error name and the first string of the body matter; a header field of a kind this reader does not know ends the walk of the header, which is safe because the fields it needs come first in what the manager sends or are looked for before any unknown kind.
In TS you’d write (pseudocode):
decodeReply(bytes)