pub fn marshal(
    msg: &MarshalledMessage,
    chosen_serial: u32,
    buf: &mut Vec<u8, Global>
) -> Result<(), Error>
Expand description

This only prepares the header and dynheader fields. To send a message you still need the original message and use get_buf() to get to the contents