Expand description
Stream framing and message I/O.
Traits§
- Async
Stream - A bidirectional byte stream capable of carrying RPC messages.
Functions§
- read_
message - Reads one Cap’n Proto message (including its segment table) from the stream.
- serialize_
message - Serializes a Cap’n Proto message (including its segment table) to framed
bytes. Synchronous so no non-
Sendcapnp builder state is held across an await; write the result withwrite_raw. - write_
raw - Writes already-framed bytes (as produced by
serialize::write_message_to_words) to the stream.