WriteMsg

Trait WriteMsg 

Source
pub trait WriteMsg<M: Message> {
    // Required method
    fn write_msg(&mut self, msg: &M) -> Result<()>;
}
Expand description

Write the given Protobuf message to the underlying I/O object.

Required Methods§

Source

fn write_msg(&mut self, msg: &M) -> Result<()>

Encode the given Protobuf as bytes and write them to the underlying I/O object (and encrypting if necessary).

Implementors§

Source§

impl<M: Message, Io: Write> WriteMsg<M> for SecretConnection<Io>

Source§

impl<M: Message, Io: Write> WriteMsg<M> for SecretWriter<Io>

Source§

impl<M: Message, Io: Write> WriteMsg<M> for Io