pub fn encode_protobuf_message(msg: impl Message) -> BytesMut
Encodes a protobuf message into a new BytesMut buffer.
BytesMut