pub fn pack<W>(&self, w: &mut W) -> Result<(), Error>
    where W: Write
  {

    let header = self.header.pack()?;
    let body = self.body.pack()?;

    let size = header.len() + body.len();

    rmp::encode::write_uint(w, size as u64)?;

    w.write_all(header.as_slice())?;
    w.write_all(body.as_slice())?;

    Ok(())
  }
/// Allows you to pack request.
Allows you to pack request.
Allows you to pack request .
pub fn pack<W>(&self, w: &mut W) -> Result<(), Error>
    where W: Write
  {
    let header = self.header.pack()?;
    let body = self.body.pack()?;
    let size = header.len() + body.len();
    rmp::encode::write_uint(w, size as u64)?;
    w.write_all(header.as_slice())?;
    w.write_all(body.as_slice())?;
    Ok(())
  }
pub fn pack < W > ( & self , w : & mut W ) -> Result < ( ) , Error > where W : Write { let header = self . header . pack ( ) ? ; let body = self . body . pack ( ) ? ; let size = header . len ( ) + body . len ( ) ; rmp :: encode :: write_uint ( w , size as u64 ) ? ; w . write_all ( header . as_slice ( ) ) ? ; w . write_all ( body . as_slice ( ) ) ? ; Ok ( ( ) ) }
Allows you to pack request.
Allows you to pack request .
&self
w
&mut W
&self
w
&mut W