[−][src]Function grin_p2p::msg::read_header
pub fn read_header(
conn: &mut TcpStream,
msg_type: Option<Type>
) -> Result<MsgHeader, Error>
Read a header from the provided connection without blocking if the underlying stream is async. Typically headers will be polled for, so we do not want to block.