pub fn format(mut self, output: &mut impl Write) -> Result<()> {
        self.header.format(self.payload.len() as u64, output)?;
        self.apply_mask();
        output.write_all(self.payload())?;
        Ok(())
    }
/// Write a frame out to a buffer
Write a frame out to a buffer
Write a frame out to a buffer
pub fn format(mut self, output: &mut impl Write) -> Result<()> {
        self.header.format(self.payload.len() as u64, output)?;
        self.apply_mask();
        output.write_all(self.payload())?;
        Ok(())
    }
pub fn format ( mut self , output : & mut impl Write ) -> Result < ( ) > { self . header . format ( self . payload . len ( ) as u64 , output ) ? ; self . apply_mask ( ) ; output . write_all ( self . payload ( ) ) ? ; Ok ( ( ) ) }
Write a frame out to a buffer
Write a frame out to a buffer
mut self
output
&mut impl Write
mut self
output
&mut impl Write