pub(crate) fn read_from<R: Read>(reader: &mut R) -> Result<Self> {
        Ok(Self {
            length: reader.read_i32::<LittleEndian>()?,
            request_id: reader.read_i32::<LittleEndian>()?,
            response_to: reader.read_i32::<LittleEndian>()?,
            op_code: OpCode::from_i32(reader.read_i32::<LittleEndian>()?)?,
        })
    }
/// Reads bytes from `r` and deserializes them into a header.
Reads bytes from `r` and deserializes them into a header.
Reads bytes from ` r ` and deserializes them into a header .
pub(crate) fn read_from<R: Read>(reader: &mut R) -> Result<Self> {
        Ok(Self {
            length: reader.read_i32::<LittleEndian>()?,
            request_id: reader.read_i32::<LittleEndian>()?,
            response_to: reader.read_i32::<LittleEndian>()?,
            op_code: OpCode::from_i32(reader.read_i32::<LittleEndian>()?)?,
        })
    }
pub ( crate ) fn read_from < R : Read > ( reader : & mut R ) -> Result < Self > { Ok ( Self { length : reader . read_i32 :: < LittleEndian > ( ) ? , request_id : reader . read_i32 :: < LittleEndian > ( ) ? , response_to : reader . read_i32 :: < LittleEndian > ( ) ? , op_code : OpCode :: from_i32 ( reader . read_i32 :: < LittleEndian > ( ) ? ) ? , } ) }
Reads bytes from `r` and deserializes them into a header.
Reads bytes from ` r ` and deserializes them into a header .
reader
&mut R
reader
&mut R