to_vec

Function to_vec 

Source
pub fn to_vec<T>(encoder: &mut Encoder, value: &T) -> Result<Vec<u8>>
where T: ?Sized + Serialize,
Expand description

Encode single message into Vec<u8>.