Function capnp::serialize::write_message

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

Writes the provided message to write.

For optimal performance, write should be a buffered writer. flush will not be called on the writer.