grin_p2p::msg
pub fn read_message<T: Readable>( stream: &mut dyn Read, msg_type: Type) -> Result<T, Error>
Reads a full message from the underlying stream.