pub(crate) fn write_to<W: Write>(&self, writer: &mut W) -> Result<()> {
        writer.write_i32::<LittleEndian>(self.length)?;
        writer.write_i32::<LittleEndian>(self.request_id)?;
        writer.write_i32::<LittleEndian>(self.response_to)?;
        writer.write_i32::<LittleEndian>(self.op_code as i32)?;

        Ok(())
    }
/// Serializes the Header and writes the bytes to `w`.
Serializes the Header and writes the bytes to `w`.
Serializes the Header and writes the bytes to ` w ` .
pub(crate) fn write_to<W: Write>(&self, writer: &mut W) -> Result<()> {
        writer.write_i32::<LittleEndian>(self.length)?;
        writer.write_i32::<LittleEndian>(self.request_id)?;
        writer.write_i32::<LittleEndian>(self.response_to)?;
        writer.write_i32::<LittleEndian>(self.op_code as i32)?;
        Ok(())
    }
pub ( crate ) fn write_to < W : Write > ( & self , writer : & mut W ) -> Result < ( ) > { writer . write_i32 :: < LittleEndian > ( self . length ) ? ; writer . write_i32 :: < LittleEndian > ( self . request_id ) ? ; writer . write_i32 :: < LittleEndian > ( self . response_to ) ? ; writer . write_i32 :: < LittleEndian > ( self . op_code as i32 ) ? ; Ok ( ( ) ) }
Serializes the Header and writes the bytes to `w`.
Serializes the Header and writes the bytes to ` w ` .
&self
writer
&mut W
&self
writer
&mut W