pub fn encode<M>(&mut self, msg: M) -> IoResult<()>
    where
        M: Encodable,
    {
        msg.encode(&mut self.writer)?;
        self.writer.flush()
    }
/// Encode this [Encodable] message to the writer and flushes it.
Encode this [Encodable] message to the writer and flushes it.
Encode this [ Encodable ] message to the writer and flushes it .
pub fn encode<M>(&mut self, msg: M) -> IoResult<()>
    where
        M: Encodable,
    {
        msg.encode(&mut self.writer)?;
        self.writer.flush()
    }
pub fn encode < M > ( & mut self , msg : M ) -> IoResult < ( ) > where M : Encodable , { msg . encode ( & mut self . writer ) ? ; self . writer . flush ( ) }
Encode this [Encodable] message to the writer and flushes it.
Encode this [ Encodable ] message to the writer and flushes it .
&mut self
msg
M
&mut self
msg
M