to_bytes

Function to_bytes 

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

Encode single message into bytes::BufMut.