pub fn encode<M>(&mut self, msg: M) -> io::Result<()>
    where
        M: Encodable + Send,
    {
        msg.encode(&mut self.buf)?;
        self.flush()
    }
/// Encode this message to the inner channel
Encode this message to the inner channel
Encode this message to the inner channel
pub fn encode<M>(&mut self, msg: M) -> io::Result<()>
    where
        M: Encodable + Send,
    {
        msg.encode(&mut self.buf)?;
        self.flush()
    }
pub fn encode < M > ( & mut self , msg : M ) -> io :: Result < ( ) > where M : Encodable + Send , { msg . encode ( & mut self . buf ) ? ; self . flush ( ) }
Encode this message to the inner channel
Encode this message to the inner channel
&mut self
msg
M
&mut self
msg
M