Function to_vec

Source
pub fn to_vec<T>(msg: &mut T) -> Result<Vec<u8>, EncodeError>
where T: EncodeMessage,