Function to_packet_from_ref

Source
pub fn to_packet_from_ref(obj: &ProtoMessage) -> Result<Vec<u8>, Box<dyn Error>>