pub fn encode(msg: &Message, out: &mut Vec<u8>)
Serialize msg onto out (appends; caller clears if reusing).
msg
out