Skip to main content

serialize_message

Function serialize_message 

Source
pub fn serialize_message(message: &Builder<HeapAllocator>) -> Vec<u8> ⓘ
Expand description

Serializes a Cap’n Proto message (including its segment table) to framed bytes. Synchronous so no non-Send capnp builder state is held across an await; write the result with write_raw.