pub trait WriteMsg<M: Message> { // Required method fn write_msg(&mut self, msg: &M) -> Result<()>; }
Write the given Protobuf message to the underlying I/O object.
Encode the given Protobuf as bytes and write them to the underlying I/O object (and encrypting if necessary).