pub fn write(&mut self, item: <U as Encoder>::Item) -> Result<(), <U as Encoder>::Error>
    where
        T: AsyncWrite,
        U: Encoder,
    {
        let len = self.write_buf.len();
        if len < self.write_lw {
            self.write_buf.reserve(self.write_hw - len)
        }
        self.codec.encode(item, &mut self.write_buf)?;
        Ok(())
    }
/// Serialize item and Write to the inner buffer
Serialize item and Write to the inner buffer
Serialize item and Write to the inner buffer
pub fn write(&mut self, item: <U as Encoder>::Item) -> Result<(), <U as Encoder>::Error>
    where
        T: AsyncWrite,
        U: Encoder,
    {
        let len = self.write_buf.len();
        if len < self.write_lw {
            self.write_buf.reserve(self.write_hw - len)
        }
        self.codec.encode(item, &mut self.write_buf)?;
        Ok(())
    }
pub fn write ( & mut self , item : < U as Encoder > :: Item ) -> Result < ( ) , < U as Encoder > :: Error > where T : AsyncWrite , U : Encoder , { let len = self . write_buf . len ( ) ; if len < self . write_lw { self . write_buf . reserve ( self . write_hw - len ) } self . codec . encode ( item , & mut self . write_buf ) ? ; Ok ( ( ) ) }
Serialize item and Write to the inner buffer
Serialize item and Write to the inner buffer
&mut self
item
<U as Encoder>::Item