pub fn serialize_to_bytes<T>(msg: T) -> Bytes
where T: Serialize,
Expand description

Serialize a message to bytes using bincode.