pub fn write_message<W, A>(write: W, message: &Builder<A>) -> Result<()>
where W: Write, A: Allocator,
Expand description

Writes a packed message to a stream.

The only source of errors from this function are write.write_all() calls. If you pass in a writer that never returns an error, then this function will never return an error.