pub fn to_vec<T>(encoder: &mut Encoder, value: &T) -> Result<Vec<u8>>where T: ?Sized + Serialize,
Encode single message into Vec<u8>.
Vec<u8>