pub fn send_message<S: Write + ?Sized>( stream: &mut S, msg: &ProtocolMessage, ) -> Result<()>
Send a protocol message over any writable stream.